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]outthe number of non-zero elements of the sparse array
[in]inis the input sparse matrix
Returns
AF_SUCCESS if the execution completes properly
Parameters
[in]inis the input sparse matrix
Returns
the number of non-zero elements of the sparse array