scipy.sparse
scipy.sparse.dia_matrix.mean
scipy.sparse.dia_matrix.multiply
dia_matrix.
minimum
Element-wise minimum between this and another matrix.