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