bundles / scipy 1.17.1 / scipy / sparse / _matrix / spmatrix / getnnz
function
scipy.sparse._matrix:spmatrix.getnnz
source: /scipy/sparse/_matrix.py :84
Signature
def getnnz ( self , axis = None ) Summary
Number of stored values, including explicit zeros.
Parameters
axis: None, 0, or 1Select between the number of values across the whole array, in each column, or in each row.
Aliases
-
scipy.sparse.spmatrix.getnnz