Compute the matrix tangent.
This routine uses expm to compute the matrix exponentials.
A : (N, N) array_like
Input array.
tanm : (N, N) ndarray
Matrix tangent of A
scipy.linalg.sinm
scipy.linalg.coshm