On Sun, Feb 8, 2009 at 8:02 AM, wrote:
> But I just found that nan in the exponent in an array are not propagated:
>
0.0 ** np.array([-np.nan, 0, 1], dtype=np.int32)[0]
> 1.0
np.power(0.0, np.array([-np.nan, 0, 1], dtype=np.int32)[0])
> 1.0
correction:
np.power propagates nans, it's a
On Sun, Feb 8, 2009 at 5:09 AM, Robert Kern wrote:
> On Sun, Feb 8, 2009 at 03:54, Stéfan van der Walt wrote:
>> Hi all,
>>
>> Ticket #955 (http://scipy.org/scipy/numpy/ticket/955) touches on the
>> following issue:
>>
> 0.0 ** np.array([-1, 0, 1], dtype=np.int32)
>> array([ Inf, 1., 0.])
On Sun, Feb 8, 2009 at 03:54, Stéfan van der Walt wrote:
> Hi all,
>
> Ticket #955 (http://scipy.org/scipy/numpy/ticket/955) touches on the
> following issue:
>
0.0 ** np.array([-1, 0, 1], dtype=np.int32)
> array([ Inf, 1., 0.])
0.0 ** np.array([-1, 0, 1], dtype=np.int32)[0]
> --
Hi all,
Ticket #955 (http://scipy.org/scipy/numpy/ticket/955) touches on the
following issue:
>>> 0.0 ** np.array([-1, 0, 1], dtype=np.int32)
array([ Inf, 1., 0.])
>>> 0.0 ** np.array([-1, 0, 1], dtype=np.int32)[0]
Traceback (most r