Re: [Numpy-discussion] numpy records in C

2010-07-20 Thread Erin Sheldon
On Mon, Jul 19, 2010 at 4:28 PM, Caius Howcroft wrote: > Hi all > > I'm playing with writing some C code to speed up an inner loop in my > python code. This loop operates on a numpy record, e.g. soemthing like > this: > > a = numpy.zeros((10,), dtype=[("myfvalue" ,"float"), ("myc", "int8"), > ("an

[Numpy-discussion] numpy records in C

2010-07-19 Thread Caius Howcroft
Hi all I'm playing with writing some C code to speed up an inner loop in my python code. This loop operates on a numpy record, e.g. soemthing like this: a = numpy.zeros((10,), dtype=[("myfvalue" ,"float"), ("myc", "int8"), ("anotheri", "uint64")]) which is then passed into c code like so: myCFu