From: Travis O. <oli...@ie...> - 2006-10-18 17:18:11
|
Charles R Harris wrote: > > > On 10/17/06, *Charles R Harris* <cha...@gm... > <mailto:cha...@gm...>> wrote: > > > > On 10/17/06, *A. M. Archibald* < per...@gm... > <mailto:per...@gm...>> wrote: > > On 17/10/06, Charles R Harris <cha...@gm... > <mailto:cha...@gm...>> wrote: > > > > > > On 10/17/06, Travis Oliphant < oli...@ie... > <mailto:oli...@ie...>> wrote: > > > <snip> > > Which doesn't seem to be the case here. I am beginning to wonder > if we really need fortran order, seems that a few well chosen > interface routines would fill the need and avoid much confusion. > > > For instance, it would be nice if flatten took an order keyword: > > In [107]: array([[1,2,3],[4,5,6]], dtype=int8, order='F').flatten() > Out[107]: array([1, 2, 3, 4, 5, 6], dtype=int8) It does take an argument (just not a keyword argument). The general rule I followed (probably inappropriately) was that single-argument methods didn't need keywords. so a.flatten('F') gives you a Fortran-order flattening. -Travis |