reshape an array?

KraftDiner bobrien18 at
Wed Mar 8 20:05:20 CET 2006

I have a 2D array.  Say it is 10x10 and I want a 1D Array of 100
What is the syntax?

oneD = reshape(twoD, (100,1))
oneD = reshape(twoD, (1,100))

One I guess is the transpose of the other but both seem to be
arrays of arrays...


More information about the Python-list mailing list