[Numpy-discussion] Infinity definitions

Bruce Southey bsouthey@gmail....
Tue Jul 15 16:23:20 CDT 2008


Christopher Barker wrote:
> Jarrod Millman wrote:
>   
>> On Tue, Jul 15, 2008 at 6:33 AM, Bruce Southey <bsouthey@gmail.com> wrote:
>>     
>>> Following Travis's suggestion below, I would like to suggest that the
>>> following definitions be depreciated or removed in this forthcoming release:
>>>
>>> numpy.Inf
>>> numpy.Infinity
>>> numpy.infty
>>> numpy.PINF
>>> numpy.NAN
>>> numpy.NaN
>>>       
>
> Just to be clear, is the idea to remove the duplicate names, which will 
> leave us with:
>
> numpy.nan
> numpy.inf
>
>   
Yes, that is my goal.

> What about:
>
> numpy.NINF
>
> should that be:
>
> numpy.ninf
> And is there a need for:
>
> numpy.pinf
>
> (or is that just redundant with numpy.inf)
>   
In numeric.py these are defined as equal:
'Inf = inf = infty = Infinity = PINF'
So, yes, these are redundant with using only numpy.inf.
> anyway, +1 for removing redundancies...
>
> -Chris
>
>
>   
Bruce




More information about the Numpy-discussion mailing list