scipy.sparse
scipy.sparse.dia_matrix.getrow
scipy.sparse.dia_matrix.maximum
dia_matrix.
log1p
Element-wise log1p.
See numpy.log1p for more information.