Back to Finite Element (MFEM)
mfem.linalg.BlockVector.fromPointer
Creates a BlockVector from an existing WASM pointer.
Syntax
mfem.linalg.BlockVector.fromPointer(ptr, offsets)
Description
Creates a BlockVector from an existing WASM pointer. Use with caution - the caller is responsible for pointer validity.
Parameters
| Name | Description |
|---|---|
| ptr | - WASM pointer to an existing MFEM BlockVector |
| offsets | - Block offsets array |
Returns
Promise<BlockVector>