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

Anne Archibald peridot.faceted at gmail.com
Thu Jun 28 11:13:14 EDT 2007


On 28/06/07, Matthieu Brucher <matthieu.brucher at 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