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