Compute the matrix tangent.
This routine uses expm to compute the matrix exponentials.
A : array, shape(M,M)
tanA : array, shape(M,M)
Matrix tangent of A
scipy.linalg.sinm
scipy.linalg.coshm