[Numpy-discussion] Howto create a record array from arrays without copying their data

2009-08-12 Thread Ralph Heinkel
Hi, I'm creating (actually calculating) a set of very large 1-d arrays (vectors), which I would like to assemble into a record array so I can access the data row-wise. Unfortunately it seems that all data of my original 1-d arrays are getting copied in memory during that process. Is there a w

[Numpy-discussion] What's wrong with floatint.c example code?

2009-02-26 Thread Ralph Heinkel
Hi, I'm trying to get into the realm of implementing my own numpy data types in numpy, and doing so I had a look at the floatint.c example coming from the numpy/doc/newdtype_example directory. Obviously it is not possible to create an array with the new floatint type by doing array([1,2,3,4,5,6,

[Numpy-discussion] Creating arrays with 'titles' in dtype causes TypeError on data access

2009-02-24 Thread Ralph Heinkel
Hi, I'm trying to use the additional 'title' feature of dtypes when creating arrays. The reason for using titles is that I want to store meta data about the columns in them (so do-not-use-titles is not the right solution for me...) Everything works fine without titles: >>> arr = array([('john',