Dennis Lee Bieber
1/4/2008 6:15:00 PM
On Fri, 4 Jan 2008 14:21:19 +0100, Jeroen Ruigrok van der Werven
<asmodai@in-nomine.org> declaimed the following in comp.lang.python:
> What I wonder about, does anybody have a Fortran to Python conversion page
> somewhere to map some of the basic types to Python equivalents?
> What kind of speed difference should I expect?
integer => integer
real/double => float
complex/double-complex => complex
If the FORTRAN is using single precision reals, I'd expect a
slow-down in Python just on that alone, as Python uses doubles as the
only float type. There is also the overhead of object access for each.
There is a reason FORTRAN hasn't died... namely a LOT of highly
optimized number crunching!
--
Wulfraed Dennis Lee Bieber KD6MOG
wlfraed@ix.netcom.com wulfraed@bestiaria.com
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: web-asst@bestiaria.com)
HTTP://www.bestiaria.com/