[Numpy-discussion] Square All Elements Of A Matrix
Jonathan Brandmeyer
jbrandmeyer at earthlink.net
Wed May 11 18:29:10 EDT 2005
On Wed, 2005-05-11 at 16:57 -0400, David M. Cooke wrote:
> td = exp(2*log(dx))
>
> If it's comparable to dx**2, then your pow() library function isn't
> any good :-( -- it's not special-casing integer powers.
I believe that this is the case. IIRC, MinGW uses a wrapper around
msvcrt.dll's pow() that handles this special case for this very reason.
HTH,
-Jonathan
More information about the NumPy-Discussion
mailing list