ArrayFire: sparseGetNNZ
Returns the number of non zero elements in the sparse array. More...
Detailed Description
Returns the number of non zero elements in the sparse array.
This is always equal to the size of the values array.
Function Documentation
◆ 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
- Parameters
-
[in] in is the input sparse matrix
- Returns
- the number of non-zero elements of the sparse array