Oops, the attachments! (always the same history)
El dt 23 de 01 del 2007 a les 20:33 +0100, en/na Francesc Altet va
escriure:
> El 2007-01-22 23:59:03 GMT, en/na Pierre GM va escriure:
> > Other example: what's more efficient ?
> > myvar = numpy.empty(shape,dtype)
> > or
> > myvar = PyArray_EMPTY
El 2007-01-22 23:59:03 GMT, en/na Pierre GM va escriure:
> Other example: what's more efficient ?
> myvar = numpy.empty(shape,dtype)
> or
> myvar = PyArray_EMPTY(dims, NPY_TYPE)
Ok. The second one indeed, but possibly less than you realize (just a
25%, see some benchmarks below). The main point i
On Monday 22 January 2007 11:18, Francesc Altet wrote:
> You should first inform to Pyrex about the definition of ndarray. For
> this, it's only necessary to declare this in a file (say
> definitions.pxd):
> from now on, Pyrex knows about the ndarray object and you should be able
> to derive a cla
El dl 22 de 01 del 2007 a les 10:07 -0500, en/na Pierre GM va escriure:
> Dear All,
> I started playing with Pyrex this week-end, to see how easy it would be to
> port some subclasses to C. A good thing is that it's not as bad as I was
> dreading. I do have a lot of question, however:
>
> - Can
Dear All,
I started playing with Pyrex this week-end, to see how easy it would be to
port some subclasses to C. A good thing is that it's not as bad as I was
dreading. I do have a lot of question, however:
- Can I create a subclass w/ Pyrex ? If yes, how ? I haven't been able to find
any exampl