This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: AIX 4.3.3
- Subject: Re: AIX 4.3.3
- From: Gerard Jungman <jungman at lanl dot gov>
- Date: Thu, 28 Sep 2000 13:20:40 -0600
- CC: gsl-discuss at sourceware dot cygnus dot com
- Organization: LANL T-8
- References: <20000928190200.A3773@bit.ch.cam.ac.uk>
Toby White wrote:
>
> Also; the compiler (ansi or not) objects to integral consts being used
> for defining static arrays; this means that two files need changed:
>
...
>
> --- qrng/niederreiter-2.c.old Thu Sep 28 18:01:21 2000
> +++ qrng/niederreiter-2.c Thu Sep 28 18:01:07 2000
> @@ -219,7 +219,7 @@
> const int MAXV = NIED2_NBITS + NIED2_MAX_DEGREE;
>
> int ci[NIED2_NBITS][NIED2_NBITS];
> - int v[MAXV+1];
> + int v[NIED2_NBITS+NIED2_MAX_DEGREE+1];
> int r;
> int i_dim;
> struct data d = { n, y, sigma};
Sigh. I made the niederreiter-2.c usage a macro.
I left multifit/demo.c for Brian.
The scoop on this, for those interested:
const int N = 5;
double x[N];
o this is correct C++
o this is correct C90 (therefore ok by gcc), provided 'x' is not of
global scope
o this is correct C9x
o not allowed in "old" ANSI C
> 1)specfunc fails in several places:
I relaxed the tolerances one notch in most of those places,
which should make the errors disappear. There should be only
one remaining,
FAIL: gsl_sf_synchrotron_2_impl(0.01, &r)
test_sf.c 1083
expected: 0.2309807734222628
obtained: 0.2309807734222623 1.877351636458429e-16 8.12774e-16
fracdiff: 9.613120678191913e-16
value/expected not consistent within reported error
0.23098077342226234 1.8773516364584285e-16
I will take a look at this. In any case, it is just
a minor annoyance. Nothing to worry about.
Thanks for the report.
--
G. Jungman