Classes
Methods
clone() → {ScranMatrix}
- Source:
Returns:
A clone of the current ScranMatrix instance. This can be freed independently of the current instance.
- Type
- ScranMatrix
column(i, optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
i |
number | Index of the column to extract.
This should be a non-negative integer less than |
|||||||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
An array containing the contents of column i.
If buffer is supplied, the function returns buffer if asTypedArray = false, or a view on buffer if asTypedArray = true.
- Type
- Float64Array | Float64WasmArray
free()
- Source:
Free the memory on the Wasm heap for this.#matrix. This invalidates this object and all of its references.
isSparse() → {boolean}
- Source:
Returns:
Whether the matrix is sparse.
- Type
- boolean
numberOfColumns() → {number}
- Source:
Returns:
Number of columns in the matrix.
- Type
- number
numberOfRows() → {number}
- Source:
Returns:
Number of rows in the matrix.
- Type
- number
row(i, optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
i |
number | Index of the row to extract.
This should be a non-negative integer less than |
|||||||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
An array containing the contents of row i.
If buffer is supplied, the function returns buffer if asTypedArray = false, or a view on buffer if asTypedArray = true.
- Type
- Float64Array | Float64WasmArray