[Numpy-discussion] extension questions: f2py and cython
Thu Oct 15 10:10:10 CDT 2009
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:numpy-discussion-
> email@example.com] On Behalf Of Robin
> Sent: 15 Oct 2009 4:37 AM
> To: firstname.lastname@example.org
> Subject: [Numpy-discussion] extension questions: f2py and cython
> Sent this last week but checking the archives it appears not to have
> got through. Hopefully this will work...
> I am looking at moving some of my code to fortran to use with f2py. To
> get started I used this simple example:
> But I have some questions. It seems to work as is, but I don't set c
> zeros anywhere. Can I assume arrays created by f2py are zero?
As I understand it, uninitialized variables in Fortran are
compiler/system-dependent. Some compilers initialize values to zero,
many leave the previous contents of the memory in place. It is safest to
never use the value of an uninitialized variable.
More information about the NumPy-Discussion