tanh scipy.sparse.bsr_matrix. bsr_matrix.tanh() Element-wise tanh. See numpy.tanh for more information. Returns: tanh : sparse array / matrixResult of applying to the data of this sparse matrix.