Re: [Numpy-discussion] PyArray_SETITEM macro ends in semicolon

2008-09-25 Thread jason-sage
Dag Sverre Seljebotn wrote: > [EMAIL PROTECTED] wrote: > >> I'm working on getting the Sage matrices for real/complex doubles to use >> numpy as a backend. In this, I'm using the PyArray_SETITEM macro from >> within Cython. However, Cython wraps the macro in a function call to >> convert th

Re: [Numpy-discussion] PyArray_SETITEM macro ends in semicolon

2008-09-25 Thread Dag Sverre Seljebotn
[EMAIL PROTECTED] wrote: > I'm working on getting the Sage matrices for real/complex doubles to use > numpy as a backend. In this, I'm using the PyArray_SETITEM macro from > within Cython. However, Cython wraps the macro in a function call to > convert the output to a Python value: > > __pyx

Re: [Numpy-discussion] PyArray_SETITEM macro ends in semicolon

2008-09-24 Thread Charles R Harris
On Wed, Sep 24, 2008 at 9:25 PM, <[EMAIL PROTECTED]> wrote: > I'm working on getting the Sage matrices for real/complex doubles to use > numpy as a backend. In this, I'm using the PyArray_SETITEM macro from > within Cython. However, Cython wraps the macro in a function call to > convert the outp

[Numpy-discussion] PyArray_SETITEM macro ends in semicolon

2008-09-24 Thread jason-sage
I'm working on getting the Sage matrices for real/complex doubles to use numpy as a backend. In this, I'm using the PyArray_SETITEM macro from within Cython. However, Cython wraps the macro in a function call to convert the output to a Python value: __pyx_1 = PyInt_FromLong(PyArray_SETITEM(