[Numpy-discussion] numpy.sign query
Charles R Harris
charlesr.harris at gmail.com
Fri Jul 12 21:25:43 EDT 2013
On Fri, Jul 12, 2013 at 12:53 PM, Alan G Isaac <alan.isaac at gmail.com> wrote:
> The docs for numpy.sign at
> do not indicate how complex numbers are handled. Currently, np.sign
> appears to return the sign of the real part as a complex value.
> Was this an explicit choice? Was x/abs(x) considered (for non-zero
ISTR some discussion of that. Personally, I like the x/abs(x) idea.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion