[Numpy-svn] r8097 - branches/1.4.x/numpy/core/code_generators

numpy-svn@scip... numpy-svn@scip...
Tue Feb 9 00:10:41 CST 2010


Author: cdavid
Date: 2010-02-09 00:10:41 -0600 (Tue, 09 Feb 2010)
New Revision: 8097

Modified:
   branches/1.4.x/numpy/core/code_generators/generate_umath.py
Log:
REF: replace literal dtypes by category in umath code generator.

Modified: branches/1.4.x/numpy/core/code_generators/generate_umath.py
===================================================================
--- branches/1.4.x/numpy/core/code_generators/generate_umath.py	2010-02-08 13:13:28 UTC (rev 8096)
+++ branches/1.4.x/numpy/core/code_generators/generate_umath.py	2010-02-09 06:10:41 UTC (rev 8097)
@@ -301,7 +301,7 @@
 'absolute' :
     Ufunc(1, 1, None,
           docstrings.get('numpy.core.umath.absolute'),
-          TD(bints+flts+times),
+          TD(nocmplx),
           TD(cmplx, out=('f', 'd', 'g')),
           TD(O, f='PyNumber_Absolute'),
           ),
@@ -313,7 +313,7 @@
 'negative' :
     Ufunc(1, 1, None,
           docstrings.get('numpy.core.umath.negative'),
-          TD(bints+flts+times),
+          TD(nocmplx),
           TD(cmplx, f='neg'),
           TD(O, f='PyNumber_Negative'),
           ),



More information about the Numpy-svn mailing list