scipy.sparse.bsr_matrix.

scipy.sparse.bsr_matrix.nnz#

属性 bsr_matrix.nnz#

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

参见

count_nonzero

非零条目的数量