SciPy

scipy.sparse.bsr_matrix.tanh

bsr_matrix.tanh()[source]

Element-wise tanh.

See numpy.tanh for more information.