diff options
author | David Cournapeau <cournape@gmail.com> | 2008-09-20 16:13:48 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-09-20 16:13:48 +0000 |
commit | bc45f6bf99ae12105f19bc7ca00469ffb9bd60f3 (patch) | |
tree | a8f87d81f6e5cb0e434f2b03c732019accc67bb0 /numpy | |
parent | 50a276b416cb7948afa50fbd85f19dff60710d9f (diff) | |
download | numpy-bc45f6bf99ae12105f19bc7ca00469ffb9bd60f3.tar.gz |
Define isfinite first, and define isinf in function of isfinite/isnan.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/math_c99.inc.src | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/core/src/math_c99.inc.src b/numpy/core/src/math_c99.inc.src index 7e96b5eec..542500d49 100644 --- a/numpy/core/src/math_c99.inc.src +++ b/numpy/core/src/math_c99.inc.src @@ -143,9 +143,8 @@ double trunc(double x) # define isfinite(x) !isnan((x) - (x)) #endif -/* Define isfinie if needed */ -#if !defined(HAVE_DECL_ISFINITE) -#define isfinite(x) (!isinf(x) && !isnan(x)) +#if !defined(HAVE_DECL_ISINF) +#define isinf(x) (!isfinite(x) && !isnan(x)) #endif #if !defined(HAVE_DECL_SIGNBIT) |