SciPy

scipy.sparse.bsr_matrix.max

bsr_matrix.max(axis=None)[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.