scipy.sparse.spmatrix.nnz

property spmatrix.nnz

存储值的数量,包括显式零。

参见

count_nonzero

非零条目数