What does Fortran order mean?

Lisandro Dalcin dalcinl at gmail.com
Mon Oct 16 15:52:23 CDT 2006


On 10/16/06, Charles R Harris <charlesr.harris at gmail.com> wrote:
> Travis,
> I note that
> >>> a = arange(6).reshape(2,3,order='F')
> >>> a
> array([[0, 1, 2],
>        [3, 4, 5]])
>
> Shouldn't that be 3x2? Or maybe [[0,2,4],[1,3,5]]? Reshape is making a copy,

Are you sure?

octave:1> a = 0:5
a =

  0  1  2  3  4  5

octave:2> reshape(a, 2, 3)
ans =

  0  2  4
  1  3  5



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Numpy-discussion mailing list