Compute the hyperbolic matrix tangent.
This routine uses expm to compute the matrix exponentials.
A : (N, N) array_like
Input array
tanhm : (N, N) ndarray
Hyperbolic matrix tangent of A
scipy.linalg.sinhm
scipy.linalg.signm