logo       

Reshaing continued: msg#00015

python.numeric.general

Subject: Reshaing continued

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@xxxxxxxxxxxx
karthikesh.raju@xxxxxxxxx
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
-----------------------------------------------------------------------


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise