[Numpy-discussion] expm

Anne Archibald peridot.faceted at gmail.com
Fri Jul 20 12:53:12 EDT 2007

On 20/07/07, Nils Wagner <nwagner at iam.uni-stuttgart.de> wrote:
> lorenzo bolla wrote:
> > hi all.
> > is there a function in numpy to compute the exp of a matrix, similar
> > to expm in matlab?
> > for example:
> > expm([[0,0],[0,0]]) = eye(2)
> Numpy doesn't provide expm but scipy does.
> >>> from scipy.linalg import expm, expm2, expm3

Just as a warning, numpy does provide expm1, but it does something
different (exp(x)-1, computed directly).


More information about the NumPy-Discussion mailing list