[Numpy-discussion] Reshaing continued
Karthikesh Raju
karthik at james.hut.fi
Sun Sep 5 02:46:00 EDT 2004
Hi All,
yes, Reshaping can be done row wise using transpose,
for example a = transpose(reshape(arange(0,9),(3,3)))
but what about higher dimension arrays.
example a = reshape(arange(0,18),(2,3,3))
a[0,:,:], a[1,:,:] should be rows wise extracts like
a[0,:,:] = 0 3 6
1 4 7
2 5 8
etc
Why cant we define the axis along which reshape should work ..
warm regards
karthik
-----------------------------------------------------------------------
Karthikesh Raju, email: karthik at james.hut.fi
karthikesh.raju at gmail.com
Researcher, http://www.cis.hut.fi/karthik
Helsinki University of Technology, Tel: +358-9-451 5389
Laboratory of Comp. & Info. Sc., Fax: +358-9-451 3277
Department of Computer Sc.,
P.O Box 5400, FIN 02015 HUT,
Espoo, FINLAND
-----------------------------------------------------------------------
More information about the NumPy-Discussion
mailing list