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