Constructs a new BLAS Matrix object.
SparseMatrix
Algebra BLAS data class
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Number | readonly | Get number of columns in this data object. | |
| Number | readonly | Get number of rows in this data object. |
Methods
Element-wise absolute value; returns a new vector or matrix.
Element-wise add another vector or matrix of the same shape; returns a new vector or matrix.
Get the value at the given row and column index.
Create a [vectors[0].length x vectors.length] matrix that contains the given vectors as columns. The vectors must all have the same length.
Element-wise multiply by another vector or matrix of the same shape; returns a new vector or matrix.
Compute the norm of this vector or matrix.
Multiply each element by the given scalar; returns a new vector or matrix.
Compute the squared L2 norm of this vector or matrix.
Element-wise subtract another vector or matrix of the same shape; returns a new vector or matrix.
Compute the sum of all elements in this vector or matrix.
Return 1
Methods that return a SparseMatrix.