Re: [Numpy-discussion] Portable macro to get NAN, INF, positive and negative zero

2009-03-12 Thread Bruce Southey
David Cournapeau wrote: Hi, For the record, I have just added the following functionalities to numpy, which may simplify some C code: - NPY_NAN/NPY_INFINITY/NPY_PZERO/NPY_NZERO: macros to get nan, inf, positive and negative zeros. Rationale: some code use NAN, _get_nan, etc... NAN

Re: [Numpy-discussion] Portable macro to get NAN, INF, positive and negative zero

2009-03-12 Thread David Cournapeau
On Thu, Mar 12, 2009 at 10:19 PM, Bruce Southey bsout...@gmail.com wrote: David Cournapeau wrote: Hi,     For the record, I have just added the following functionalities to numpy, which may simplify some C code:     - NPY_NAN/NPY_INFINITY/NPY_PZERO/NPY_NZERO: macros to get nan, inf,

Re: [Numpy-discussion] Portable macro to get NAN, INF, positive and negative zero

2009-03-12 Thread Bruce Southey
David Cournapeau wrote: On Thu, Mar 12, 2009 at 10:19 PM, Bruce Southey bsout...@gmail.com wrote: David Cournapeau wrote: Hi, For the record, I have just added the following functionalities to numpy, which may simplify some C code: -

[Numpy-discussion] Portable macro to get NAN, INF, positive and negative zero

2009-03-11 Thread David Cournapeau
Hi, For the record, I have just added the following functionalities to numpy, which may simplify some C code: - NPY_NAN/NPY_INFINITY/NPY_PZERO/NPY_NZERO: macros to get nan, inf, positive and negative zeros. Rationale: some code use NAN, _get_nan, etc... NAN is a GNU C extension, INFINITY

Re: [Numpy-discussion] Portable macro to get NAN, INF, positive and negative zero

2009-03-11 Thread Charles R Harris
On Wed, Mar 11, 2009 at 12:43 AM, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Hi, For the record, I have just added the following functionalities to numpy, which may simplify some C code: - NPY_NAN/NPY_INFINITY/NPY_PZERO/NPY_NZERO: macros to get nan, inf, positive and