diff options
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r-- | doc/source/reference/c-api/coremath.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/source/reference/c-api/coremath.rst b/doc/source/reference/c-api/coremath.rst index eb0990edb..2293f0ae8 100644 --- a/doc/source/reference/c-api/coremath.rst +++ b/doc/source/reference/c-api/coremath.rst @@ -55,30 +55,30 @@ Floating point classification .. c:macro:: npy_isnan(x) - This is a macro, and is equivalent to C99 isnan: works for single, double + This is an alias for C99 isnan: works for single, double and extended precision, and return a non 0 value if x is a NaN. .. c:macro:: npy_isfinite(x) - This is a macro, and is equivalent to C99 isfinite: works for single, + This is an alias for C99 isfinite: works for single, double and extended precision, and return a non 0 value if x is neither a NaN nor an infinity. .. c:macro:: npy_isinf(x) - This is a macro, and is equivalent to C99 isinf: works for single, double + This is an alias for C99 isinf: works for single, double and extended precision, and return a non 0 value if x is infinite (positive and negative). .. c:macro:: npy_signbit(x) - This is a macro, and is equivalent to C99 signbit: works for single, double + This is an alias for C99 signbit: works for single, double and extended precision, and return a non 0 value if x has the signbit set (that is the number is negative). .. c:macro:: npy_copysign(x, y) - This is a function equivalent to C99 copysign: return x with the same sign + This is an alias for C99 copysign: return x with the same sign as y. Works for any value, including inf and nan. Single and extended precisions are available with suffix f and l. @@ -141,7 +141,7 @@ Those can be useful for precise floating point comparison. .. c:function:: double npy_nextafter(double x, double y) - This is a function equivalent to C99 nextafter: return next representable + This is an alias to C99 nextafter: return next representable floating point value from x in the direction of y. Single and extended precisions are available with suffix f and l. |