Re: [Numpy-discussion] fortran representation

2007-05-31 Thread Travis Oliphant
lorenzo bolla wrote: > Hi all, > I've got an easy question for you. I looked in Travis' book, but I > couldn't figure out the answer... > > If I have an array1D (obtained reading a stream of numbers with > numpy.fromfile) like that: > > In [150]: data > Out[150]: array([ 2., 3., 4., 3.,

Re: [Numpy-discussion] fortran representation

2007-05-31 Thread Stefan van der Walt
On Thu, May 31, 2007 at 12:07:09PM +0200, lorenzo bolla wrote: > If I have an array1D (obtained reading a stream of numbers with > numpy.fromfile) > like that: > > In [150]: data > Out[150]: array([ 2., 3., 4., 3., 4., 5., 4., 5., 6., 5., 6., 7.], > dtype=float32) > > I want it to b

[Numpy-discussion] fortran representation

2007-05-31 Thread lorenzo bolla
Hi all, I've got an easy question for you. I looked in Travis' book, but I couldn't figure out the answer... If I have an array1D (obtained reading a stream of numbers with numpy.fromfile) like that: In [150]: data Out[150]: array([ 2., 3., 4., 3., 4., 5., 4., 5., 6., 5., 6., 7.], dtyp