[SciPy-dev] I can't find howto get exp(x) or a^x in NumPy_for_Matlab_Users page

Anne Archibald peridot.faceted@gmail....
Thu Jun 28 10:13:14 CDT 2007


On 28/06/07, Matthieu Brucher <matthieu.brucher@gmail.com> wrote:

> numpy.exp for a element-wise exponentiation, and a**x for a^x

To expand on this: if M is a matrix (not array), then M**3 will
compute the cube of the matrix (fairly efficiently). But this will not
handle fractional exponents (I'm not totally sure those are
well-defined anyway) and I don't know if there is a matrix exponential
in numpy.

Anne


More information about the Scipy-dev mailing list