Returns the number of non zero elements in the sparse array.
More...
Returns the number of non zero elements in the sparse array.
This is always equal to the size of the values array.
◆ af_sparse_get_nnz()
- Parameters
-
[out] | out | the number of non-zero elements of the sparse array |
[in] | in | is the input sparse matrix |
- Returns
- AF_SUCCESS if the execution completes properly
◆ sparseGetNNZ()
- Parameters
-
[in] | in | is the input sparse matrix |
- Returns
- the number of non-zero elements of the sparse array
- Examples:
- benchmarks/cg.cpp.