[Numpy-discussion] bug in oldnumeric.ma

Stéfan van der Walt stefan at sun.ac.za
Fri May 9 12:13:11 EDT 2008


2008/5/9 Eric Firing <efiring at hawaii.edu>:
> Pierre GM fixed this in r5137, so that the result is masked only if the
> first argument is negative and the power is between -1 and 1.

Why should the output be masked only when the power is between -1 and
1?  Other powers also produce nan's.  Either way, the docstring should
be updated:

    Computes a**b elementwise.

    Masked values are set to 1.

Regards
Stéfan



More information about the NumPy-Discussion mailing list