On Mon, Sep 28, 2009 at 06:23, Neal Becker <ndbecker2@gmail.com> wrote:
Has anyone attempted a new array type in cython? Any hints?
Are you having problems? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Robert Kern wrote:
On Mon, Sep 28, 2009 at 06:23, Neal Becker <ndbecker2@gmail.com> wrote:
Has anyone attempted a new array type in cython? Any hints?
Are you having problems?
No, haven't tried using cython for this yet. Wondering if there are any examples. So far my experiences have been with boost::python.
On Mon, Sep 28, 2009 at 10:36, Neal Becker <ndbecker2@gmail.com> wrote:
Robert Kern wrote:
On Mon, Sep 28, 2009 at 06:23, Neal Becker <ndbecker2@gmail.com> wrote:
Has anyone attempted a new array type in cython? Any hints?
Are you having problems?
No, haven't tried using cython for this yet. Wondering if there are any examples.
Have you read the documentation? http://wiki.cython.org/tutorials/numpy -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Robert Kern wrote:
On Mon, Sep 28, 2009 at 10:36, Neal Becker <ndbecker2@gmail.com> wrote:
Robert Kern wrote:
On Mon, Sep 28, 2009 at 06:23, Neal Becker <ndbecker2@gmail.com> wrote:
Has anyone attempted a new array type in cython? Any hints?
Are you having problems?
No, haven't tried using cython for this yet. Wondering if there are any examples.
Have you read the documentation?
Yes, I didn't notice anything about adding user-defined datatypes to numpy, did I miss something?
Robert Kern wrote:
On Mon, Sep 28, 2009 at 10:36, Neal Becker <ndbecker2@gmail.com> wrote:
Robert Kern wrote:
On Mon, Sep 28, 2009 at 06:23, Neal Becker <ndbecker2@gmail.com> wrote:
Has anyone attempted a new array type in cython? Any hints?
Are you having problems?
No, haven't tried using cython for this yet. Wondering if there are any examples.
Have you read the documentation?
Yes, I didn't notice anything about adding user-defined datatypes to numpy, did I miss something?
This is for a fixed point type, no? Why not write a class based around something like int32, override some of the methods, and use object arrays? It's quick an easy and unless you really, really need speed it should do the
On Mon, Sep 28, 2009 at 10:47 AM, Neal Becker <ndbecker2@gmail.com> wrote: trick. Chuck
On Mon, Sep 28, 2009 at 10:36, Neal Becker <ndbecker2@gmail.com> wrote:
Robert Kern wrote:
On Mon, Sep 28, 2009 at 06:23, Neal Becker <ndbecker2@gmail.com> wrote:
Has anyone attempted a new array type in cython? Any hints?
Are you having problems?
No, haven't tried using cython for this yet. Wondering if there are any examples.
I'm sorry. I misunderstood your question. You meant adding a new dtype in Cython. No, I don't think anyone has attempted this with Cython, yet. There is a C example in docs/newdtype_example/. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
participants (3)
-
Charles R Harris -
Neal Becker -
Robert Kern