On Friday 27 October 2006 19:06, Francesc Altet wrote: [FA]: for example: [FA]: [FA]: In [67]: dtype([('f1', int16)]) [FA]: Out[67]: dtype([('f1', '<i2')]) [FA]: [FA]: In [68]: dtype([('f1', int16, (2,2))]) [FA]: Out[68]: dtype([('f1', '<i2', (2, 2))]) [FA]: [FA]: In [69]: dtype([('f1', int16, (2,2)), ('f3', int32)]) [FA]: Out[69]: dtype([('f1', '<i2', (2, 2)), ('f3', '<i4')])
Thanks, Francesc, for the examples! IMO, record arrays seem powerful, but also intimidating at a first glance. I think many didactical examples will help getting them into common use. I made some effort to get updated examples in the Numpy Example List: www.scipy.org/Numpy_Example_List#dtype www.scipy.org/Numpy_Example_List#array Could people who already have some experience with it, have a look at them and give me their opinion? Cheers, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ------------------------------------------------------------------------- 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 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion