SciPy

This is documentation for an old release of SciPy (version 0.13.0). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.sparse.csr_matrix.max

csr_matrix.max()[source]

Maximum of the elements of this matrix.

This takes all elements into account, not just the non-zero ones.

Returns :

amax : self.dtype

Maximum element.