[Numpy-discussion] expm

Anne Archibald peridot.faceted@gmail....
Fri Jul 20 11:53:12 CDT 2007


On 20/07/07, Nils Wagner <nwagner@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).

Anne


More information about the Numpy-discussion mailing list