def expm(A, q=None):
 if (q is not None):
  msg = 'argument q=... in scipy.linalg.expm is deprecated.'
  warnings.warn(msg, DeprecationWarning)
 import scipy.sparse.linalg
 return scipy.sparse.linalg.expm(A)

def expm ( A , q = None ) : if ( q is not None ) : msg = 'argument q=... in scipy.linalg.expm is deprecated.' warnings . warn ( msg , DeprecationWarning ) import scipy . sparse . linalg return scipy . sparse . linalg . expm ( A )
compute the matrix exponential using pade approximation .