[Numpy-svn] r6009 - in trunk/numpy/core: . tests

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Nov 11 16:09:26 EST 2008


Author: charris
Date: 2008-11-11 15:09:17 -0600 (Tue, 11 Nov 2008)
New Revision: 6009

Modified:
   trunk/numpy/core/setup.py
   trunk/numpy/core/tests/test_umath.py
Log:
Debugging log1p problem.
Add log1p to the search list for f,l types.
Add back tests of log1pf, log1pl to see if they work.


Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2008-11-11 19:18:48 UTC (rev 6008)
+++ trunk/numpy/core/setup.py	2008-11-11 21:09:17 UTC (rev 6009)
@@ -85,7 +85,7 @@
 
     # C99 functions: float and long double versions
     c99_funcs = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", "floor",
-                 "ceil", "rint", "trunc", "sqrt", "log10", "log", "exp",
+                 "ceil", "rint", "trunc", "sqrt", "log10", "log", "log1p", "exp",
                  "expm1", "asin", "acos", "atan", "asinh", "acosh", "atanh",
                  "hypot", "atan2", "pow", "fmod", "modf", 'frexp', 'ldexp',
                  "exp2", "log2"]

Modified: trunk/numpy/core/tests/test_umath.py
===================================================================
--- trunk/numpy/core/tests/test_umath.py	2008-11-11 19:18:48 UTC (rev 6008)
+++ trunk/numpy/core/tests/test_umath.py	2008-11-11 21:09:17 UTC (rev 6009)
@@ -128,11 +128,11 @@
     def test_log1p_d(self):
         np.log1p(np.array(1e-100, dtype='d'))
 
-#    def test_log1p_f(self):
-#        np.log1p(np.array(1e-100, dtype='f'))
+    def test_log1p_f(self):
+        np.log1p(np.array(1e-100, dtype='f'))
 
-#    def test_log1p_g(self):
-#        np.log1p(np.array(1e-100, dtype='g'))
+    def test_log1p_g(self):
+        np.log1p(np.array(1e-100, dtype='g'))
 
     def test_log1p(self):
         assert_almost_equal(ncu.log1p(0.2), ncu.log(1.2))




More information about the Numpy-svn mailing list