Re: [Numpy-discussion] buggy fortran array reshape ?

2009-04-22 Thread Fabrice Pardo
josef.p...@gmail.com wrote: > > from help: > """ > Returns: > reshaped_array : ndarray > This will be a new view object if possible; otherwise, it will be a copy. > """ > > " if possible" and "otherwise" are not very precise > I guess reshape tries to return an array that is contiguous, if you do >

[Numpy-discussion] buggy fortran array reshape ?

2009-04-22 Thread Fabrice Pardo
After reshaping a Fortran array, the new array doesn't share data with original array. I will be glad if someone can explain the strange behaviour of this program. Is it a numpy bug ? #v def check_bug(order): a = numpy.ndarray((3,2),order=order,