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