SciPy

scipy.sparse.dok_matrix.minimum

dok_matrix.minimum(other)[source]

Element-wise minimum between this and another matrix.