Fortran to Python

Robert Kern robert.kern at gmail.com
Sat Jan 5 06:05:44 EST 2008


Jeroen Ruigrok van der Werven wrote:
> -On [20080104 19:21], Dennis Lee Bieber (wlfraed at ix.netcom.com) wrote:
>> 	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.
> 
> In this case it uses complex*16 and real*8. Is a real*8 a single precision
> real?

Double precision. These map to the Python complex and float types exactly.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Python-list mailing list