Back to Sparse Direct Solver (SuperLU)
slu.matrix.getDiagonal
Get the diagonal elements of a sparse matrix.
Syntax
slu.matrix.getDiagonal(A)
Description
Get the diagonal elements of a sparse matrix.
Parameters
| Name | Description |
|---|---|
| A | - Sparse matrix |
Returns
Float64Array