scipy.sparse.coo_matrix. tanh# coo_matrix.tanh()[источник]# Поэлементный tanh. См. numpy.tanh для получения дополнительной информации.