[SciPy-user] amd64 specific error in fitpack spline interpolation

A. M. Archibald peridot.faceted at gmail.com
Wed Aug 30 11:39:35 CDT 2006


On 30/08/06, Stefan van der Walt <stefan at sun.ac.za> wrote:
> Hi Angus,
>
> This is fixed in SVN (it works on the AMD Athlon 64 that I have access
> to).  The C-wrappers expect 32-bit integers, instead of the 64-bit
> integers associated with 'int' on your platform.
>
> Can any of the developers tell me what the correct way is of handling
> 64-bit integers in C, using the numpy API?  Or more specifically, of
> handling the default system type integer.

In this case, the problem is not with C but with Fortran. The fitpack
routines, and many others in scipy, are written in Fortran, which
specifies its integer size machine-independently. So fortran INTEGERS
are always int32s. Unfortunately, there are places in the scipy
wrappers where people have assumed that they are ints.

A. M. Archibald


More information about the SciPy-user mailing list