Compute the matrix exponential using eigenvalue decomposition.
A : array, shape(M,M)
Matrix to be exponentiated
expA : array, shape(M,M)
Matrix exponential of A
scipy.linalg.expm
scipy.linalg.expm3