Back to Sparse Direct Solver (SuperLU)
slu.getNnz
Get the number of nonzeros in a sparse matrix.
Syntax
slu.getNnz(matrix)
Description
Get the number of nonzeros in a sparse matrix.
Parameters
| Name | Description |
|---|---|
| matrix | SparseMatrix |
Returns
number