[Numpy-svn] r6416 - branches/coremath/numpy/core/include/numpy

numpy-svn@scip... numpy-svn@scip...
Thu Feb 19 05:45:15 CST 2009


Author: cdavid
Date: 2009-02-19 05:44:22 -0600 (Thu, 19 Feb 2009)
New Revision: 6416

Modified:
   branches/coremath/numpy/core/include/numpy/npy_math.h
Log:
Add a few more non standard functions to npy math.

Modified: branches/coremath/numpy/core/include/numpy/npy_math.h
===================================================================
--- branches/coremath/numpy/core/include/numpy/npy_math.h	2009-02-19 11:42:23 UTC (rev 6415)
+++ branches/coremath/numpy/core/include/numpy/npy_math.h	2009-02-19 11:44:22 UTC (rev 6416)
@@ -25,7 +25,6 @@
 double npy_log(double x);
 double npy_log10(double x);
 double npy_exp(double x);
-double npy_pow(double x);
 double npy_sqrt(double x);
 
 double npy_fabs(double x);
@@ -45,6 +44,7 @@
 double npy_log2(double x);
 
 double npy_atan2(double x, double y);
+double npy_pow(double x, double y);
 /*
  * IEEE 754 fpu handling. Those are guaranteed to be macros
  */
@@ -149,4 +149,30 @@
 
 npy_longdouble npy_modfl(npy_longdouble x, npy_longdouble* y);
 
+/*
+ * Non standard functions
+ */
+double npy_deg2rad(double x);
+double npy_rad2deg(double x);
+double npy_logaddexp(double x, double y);
+double npy_logaddexp2(double x, double y);
+
+float npy_deg2radf(float x);
+float npy_rad2degf(float x);
+float npy_logaddexpf(float x, float y);
+float npy_logaddexp2f(float x, float y);
+
+npy_longdouble npy_deg2radl(npy_longdouble x);
+npy_longdouble npy_rad2degl(npy_longdouble x);
+npy_longdouble npy_logaddexpl(npy_longdouble x, npy_longdouble y);
+npy_longdouble npy_logaddexp2l(npy_longdouble x, npy_longdouble y);
+
+#define npy_degrees npy_rad2deg
+#define npy_degreesf npy_rad2degf
+#define npy_degreesl npy_rad2degl
+
+#define npy_radians npy_deg2rad
+#define npy_radiansf npy_deg2radf
+#define npy_radiansl npy_deg2radl
+
 #endif



More information about the Numpy-svn mailing list