Best pattern/idiom

Austyn Bontrager austynjay at yahoo.com
Mon Aug 16 12:35:31 EDT 2004


You might be interested in the numarray package
http://www.stsci.edu/resources/software_hardware/numarray

 >>> A = numarray.array([1,2,3,4])
 >>> B = numarray.reshape(A, (2,2))
 >>> B
array([[1 2]
        [3 4]])



More information about the Python-list mailing list