diff options
author | Lars Buitinck <l.buitinck@esciencecenter.nl> | 2013-09-08 16:33:31 +0200 |
---|---|---|
committer | Lars Buitinck <l.buitinck@esciencecenter.nl> | 2013-09-08 16:33:31 +0200 |
commit | d53d0b203e2e6a0cb6fd08c95aec891be6547264 (patch) | |
tree | 611c27f52ff05be714b5539cca14346264f60f52 | |
parent | 73fbfb2e168e76e8a0550fbaa680f6be10ba9459 (diff) | |
download | numpy-d53d0b203e2e6a0cb6fd08c95aec891be6547264.tar.gz |
MAINT: make loggam static in random kit
-rw-r--r-- | numpy/random/mtrand/distributions.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/random/mtrand/distributions.c b/numpy/random/mtrand/distributions.c index 05f62f0cf..c2047024f 100644 --- a/numpy/random/mtrand/distributions.c +++ b/numpy/random/mtrand/distributions.c @@ -53,12 +53,13 @@ #ifndef M_PI #define M_PI 3.14159265358979323846264338328 #endif -/* log-gamma function to support some of these distributions. The + +/* + * log-gamma function to support some of these distributions. The * algorithm comes from SPECFUN by Shanjie Zhang and Jianming Jin and their * book "Computation of Special Functions", 1996, John Wiley & Sons, Inc. */ -extern double loggam(double x); -double loggam(double x) +static double loggam(double x) { double x0, x2, xp, gl, gl0; long k, n; |