Compute the matrix exponential using Pade approximation.
A : array, shape(M,M)
Matrix to be exponentiated
q : integer
Order of the Pade approximation
expA : array, shape(M,M)
Matrix exponential of A
scipy.linalg.hessenberg
scipy.linalg.expm2