getnnz — SciPy v1.15.2 Manual (original) (raw)
scipy.sparse.bsr_matrix.
bsr_matrix.getnnz(axis=None)[source]#
Number of stored values, including explicit zeros.
Parameters:
axisNone, 0, or 1
Select between the number of values across the whole array, in each column, or in each row.