[SciPy-user] [f2py] bool array...

fred fredmfp@gmail....
Thu Aug 23 17:27:48 CDT 2007

Robert Kern a écrit :
> Fortran LOGICAL arrays are usually stored as integers, usually of the same width
> as Fortran INTEGER. numpy bool arrays are stored as bytes. The correct mapping
> between Fortran LOGICALs and numpy arrays is a numpy int array of some width.
Ok,  I did not know that (and was thinking that boolean were stored as 
Thanks for clarification.


More information about the SciPy-user mailing list