scipy.sparse
scipy.sparse.dia_matrix.sum
scipy.sparse.dia_matrix.tanh
dia_matrix.
tan
Element-wise tan.
See numpy.tan for more information.