scipy.sparse.coo_matrix.

maximum#

coo_matrix.maximum(other)[source]#

Element-wise maximum between this and another array/matrix.

Returns:
sparse array/matrix or ndarray

Result of element-wise minimum. The type depends on other:

  • If other is a scalar, the result is a sparse array/matrix.

  • If other is an ndarray, the result is an ndarray.