Back to Sparse Direct Solver (SuperLU)
slu.core.allocateWorkspace
Allocate a workspace buffer in WASM memory.
Syntax
slu.core.allocateWorkspace(size)
Description
Allocate a workspace buffer in WASM memory. This allows pre-allocating workspace for factorization operations, which can reduce allocation overhead when performing many operations.
Parameters
| Name | Description |
|---|---|
| size | - Size in bytes to allocate |
Returns
WorkspaceAllocation