Back to Linear Algebra (Eigen)
eigen.sparse.sparseEye
Create a sparse identity matrix.
Syntax
eigen.sparse.sparseEye(n)
Description
Create a sparse identity matrix.
Parameters
| Name | Description |
|---|---|
| n | - Size of the matrix |
Returns
SparseMatrixHandle