Back to Linear Algebra (Eigen)
eigen.sparse.SparseMatrix.banded
Create a sparse matrix from a banded structure.
Syntax
eigen.sparse.SparseMatrix.banded(n, bands)
Description
Create a sparse matrix from a banded structure.
Parameters
| Name | Description |
|---|---|
| n | - Matrix dimension |
| bands | - Array of {offset, values} where offset is band position |
Returns
SparseMatrix