A recarray of arrays
Pierre GM
pgmdevlist at gmail.com
Sat Oct 28 14:36:23 CDT 2006
Folks,
What is the easiest way to define a recarray of arrays ?
For example, I'd need something like that:
Given three arrays
>>> x = N.arange(5)
>>> y = x+1
>>> z = N.sqrt(x)
and a list of names:
>>> n = ['x','y','z']
Define a 3-record array with two fields: the first one being a ndarray (in x,
y or), the second a string (in n).
I'm a bit at loss with the definition of the corresponding dtype...
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Numpy-discussion
mailing list