[Numpy-discussion] adding fused multiply and add to numpy

Neal Becker ndbecker2 at gmail.com
Thu Jan 9 09:35:22 EST 2014

Charles R Harris wrote:

> On Wed, Jan 8, 2014 at 2:39 PM, Julian Taylor <jtaylor.debian at googlemail.com
>> wrote:
> Another function that could be useful is a |a|**2 function, abs2 perhaps.
> Chuck

I use mag_sqr all the time.  It should be much faster for complex, if computed

x.real**2 + x.imag**2

avoiding the sqrt of abs.

More information about the NumPy-Discussion mailing list