[Numpy-discussion] fortran array storage question

Georg Holzmann grh at mur.at
Fri Oct 26 08:41:39 EDT 2007


Hallo!

> This depends on what you are trying to do, but generally, I find that if 
> you can afford it memory-wise, it is much faster to just get a C 
> contiguous array if you treat your C array element per element. If you 

Yes, but the problem is that this data is very big (up to my memory 
limit) and in python I only want to read it for debugging purpose.

And if I want to make a copy to a C contiguous array I can always do it 
like:
    my_cstyle_array = my_method().copy()


Thanks,
LG
Georg



More information about the NumPy-Discussion mailing list