summaryrefslogtreecommitdiff
path: root/scipy/base/code_generators/generate_umath.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-09-16 21:11:54 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-09-16 21:11:54 +0000
commit325306f18aac4f9581bc3aae49da30d09a1bd410 (patch)
tree36b4c02aa691c45d9fb5217050dc3652101a5d94 /scipy/base/code_generators/generate_umath.py
parente4e9c0eb0c78db4cc0afd4e81d0af38c5ccaf02c (diff)
downloadnumpy-325306f18aac4f9581bc3aae49da30d09a1bd410.tar.gz
Added isnan, isinf, isfinite, and signbit
Diffstat (limited to 'scipy/base/code_generators/generate_umath.py')
-rw-r--r--scipy/base/code_generators/generate_umath.py26
1 files changed, 25 insertions, 1 deletions
diff --git a/scipy/base/code_generators/generate_umath.py b/scipy/base/code_generators/generate_umath.py
index 7c0663abd..ae2852a23 100644
--- a/scipy/base/code_generators/generate_umath.py
+++ b/scipy/base/code_generators/generate_umath.py
@@ -275,7 +275,31 @@ defdict = {
"sqrt(x**2 + y**2) elementwise"
],
-'modf' : ['fdg','',
+'isnan' : [flts+cmplx, '',
+ (), (1,1), None,
+ "isnan(x) returns True where x is Not-A-Number",
+ '?'*len(flts+cmplx)
+ ],
+
+'isinf' : [flts+cmplx, '',
+ (), (1,1), None,
+ "isinf(x) returns True where x is + or - infinity",
+ '?'*len(flts+cmplx)
+ ],
+
+'isfinite' : [flts+cmplx, '',
+ (), (1,1), None,
+ "isfinite(x) returns True where x is finite",
+ '?'*len(flts+cmplx)
+ ],
+
+'signbit' : [flts,'',
+ (),(1,1),None,
+ "signbit(x) returns True where signbit of x is set (x<0).",
+ '?'*len(flts)
+ ],
+
+'modf' : [flts,'',
(),(1,2),None,
"modf breaks argument into integral and fractional parts (each with the same sign as input)"
]