From: Pierre GM <pgm...@gm...> - 2006-10-28 19:36:30
|
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... |