This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / sparse / _matrix / spmatrix / getnnz

function

scipy.sparse._matrix:spmatrix.getnnz

source: build-install/usr/lib/python3.14/site-packages/scipy/sparse/_matrix.py:115

Signature

def getnnz(self, axis = None)

Summary

Number of stored values, including explicit zeros.

Parameters

axis : None, 0, or 1

Select between the number of values across the whole array, in each column, or in each row.

Aliases

  • scipy.sparse.spmatrix.getnnz