[Scipy-tickets] [SciPy] #255: Fortran integers are int32 on 64bit platforms so FITPACK wrappers fail
SciPy
scipy-tickets at scipy.net
Sun Aug 27 12:50:22 CDT 2006
#255: Fortran integers are int32 on 64bit platforms so FITPACK wrappers fail
---------------------+------------------------------------------------------
Reporter: peridot | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
On amd64, and I think on all 64-bit platforms that correctly implement
fortran 77, fortran INTEGERs are 32-bit objects, but numpy ints are 64-bit
objects. So any function that prepares integer arrays to pass to a fortran
routine must use int32, not int.
In particular, in interpolate/fitpack.py, the array "iwrk" is of type int,
but fitpack needs it to be of type int32, so the wrapper fails with an
error message.
I suspect this error also occurs elsewhere in the codebase.
--
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/255>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.
More information about the Scipy-tickets
mailing list