Back to Sparse Direct Solver (SuperLU)
slu.matrix.createSparseIdentity
Create a sparse identity matrix in CSC format.
Syntax
slu.matrix.createSparseIdentity(n, dtype?)
Description
Create a sparse identity matrix in CSC format.
Parameters
| Name | Description |
|---|---|
| n | - Size of the identity matrix |
| dtype(optional) | - Data type (default: 'float64') |
Returns
SparseMatrixCSC