turicreate.SArray.nnz

SArray.nnz()

Number of non-zero elements in the SArray.

Returns:
out : int

Number of non-zero elements.