Re: [Numpy-discussion] Constant array of tuples

2009-04-10 Thread Christopher Barker
Frank Peacock wrote: > Hello > > I would like to know whether there is a simple way to construct a constant > array of tuples: > > How do I construct an array of size (width*height) where each element is > (w,x,y,z) Is this what you want? a = np.empty((5,6), dtype=np.object) >>> for i in range

[Numpy-discussion] Constant array of tuples

2009-04-10 Thread Frank Peacock
Hello I would like to know whether there is a simple way to construct a constant array of tuples: How do I construct an array of size (width*height) where each element is (w,x,y,z) Frank -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.o