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