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