SciPy

scipy.sparse.spmatrix.maximum

spmatrix.maximum(other)[source]

Element-wise maximum between this and another matrix.