Permalink
Browse files

Change round to cephes_round in cephes library. Fix other use of basi…

…c.random
  • Loading branch information...
1 parent e5573a7 commit 4f93f989d9414a69111c787b28b02f9dba99834b @teoliphant teoliphant committed Dec 26, 2005
Showing with 7 additions and 6 deletions.
  1. +1 −1 Lib/fftpack/tests/test_basic.py
  2. +1 −1 Lib/special/_cephesmodule.c
  3. +1 −0 Lib/special/cephes.h
  4. +4 −4 Lib/special/cephes/round.c
@@ -22,7 +22,7 @@
from scipy.base import arange, add, array, asarray, zeros, dot, exp, pi,\
swapaxes
-from scipy.basic.random import rand
+from scipy.random import rand
def random(size):
return rand(*size)
@@ -181,7 +181,7 @@ static void * ndtri_data[] = { (void *)ndtri, (void *)ndtri, };
static void * psi_data[] = { (void *)psi, (void *)psi, (void *)cpsi_wrap, (void *)cpsi_wrap};
static void * rgamma_data[] = { (void *)rgamma, (void *)rgamma, (void *)crgamma_wrap, (void *)crgamma_wrap};
-static void * round_data[] = { (void *)round, (void *)round, };
+static void * round_data[] = { (void *)cephes_round, (void *)cephes_round, };
static void * sindg_data[] = { (void *)sindg, (void *)sindg, };
static void * cosdg_data[] = { (void *)cosdg, (void *)cosdg, };
static void * radian_data[] = { (void *)radian, (void *)radian, };
View
@@ -139,6 +139,7 @@ extern void revers ( double y[], double x[], int n );
*/
extern double rgamma ( double x );
extern double round ( double x );
+extern double cephes_round ( double x );
/*
extern int sprec ( void );
@@ -6,9 +6,9 @@
*
* SYNOPSIS:
*
- * double x, y, round();
+ * double x, y, cephes_round();
*
- * y = round(x);
+ * y = cephes_round(x);
*
*
*
@@ -38,10 +38,10 @@ Direct inquiries to 30 Frost Street, Cambridge, MA 02140
double floor();
#else
extern double floor(double);
-double round(double);
+double cephes_round(double);
#endif
-double round(x)
+double cephes_round(x)
double x;
{
double y, r;

0 comments on commit 4f93f98

Please sign in to comment.