Back to Sparse Direct Solver (SuperLU)
slu.matrix.getSparsityPattern
Extract the sparsity pattern (nonzero locations) of a matrix.
Syntax
slu.matrix.getSparsityPattern(A)
Description
Extract the sparsity pattern (nonzero locations) of a matrix. Returns the row and column indices of all nonzeros, which can be used for visualization (e.g., spy plots).
Parameters
| Name | Description |
|---|---|
| A | - Sparse matrix |
Returns
SparsityPattern