Hi, is there any more documentation about the numpy C API than the one at http://projects.scipy.org/scipy/numpy/wiki/NumPyCAPI ? This one deals mostly with creating NumPy arrays in C, but I'm more interested in manually filling the arrays with actual data, because wrapping of memory is not possible in my scenario. Thanks, Thomas
I don't know anything about C API, but scipy documentation from the website http://www.scipy.org/doc/api_docs/ is dated 14 August 2007, so scipy 0.6.0 doc differs significantly. D. Thomas Schreiner wrote:
Hi,
is there any more documentation about the numpy C API than the one at http://projects.scipy.org/scipy/numpy/wiki/NumPyCAPI ?
This one deals mostly with creating NumPy arrays in C, but I'm more interested in manually filling the arrays with actual data, because wrapping of memory is not possible in my scenario.
Thanks,
Thomas _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Hi. dmitrey wrote:
Thomas Schreiner wrote:
is there any more documentation about the numpy C API than the one at http://projects.scipy.org/scipy/numpy/wiki/NumPyCAPI ?
I don't know anything about C API, but scipy documentation from the website http://www.scipy.org/doc/api_docs/ is dated 14 August 2007, so scipy 0.6.0 doc differs significantly.
Thanks for the link. I just found out that there is a problem with
running even the most simple example code.
Am I doing anything wrong in this program? It's crashing immediately
after the "before" line, using Borland C++ Builder 6 and
numpy-1.0.3.1.win32-py2.4.
#include <iostream>
#include
Andrew Straw schrieb:
Thomas Schreiner wrote:
Am I doing anything wrong in this program? It's crashing immediately after the "before" line, using Borland C++ Builder 6 and numpy-1.0.3.1.win32-py2.4. You have to call import_array() before using the C API.
Thanks a lot, that was the problem. There still seems to be a bug in #define import_array(): In my version of __multiarray_api.h, this line ends with "return;", which my compiler doesn't accept. If I replace it by "return(0);" it's perfectly fine. Thomas
On 9/25/07, Thomas Schreiner
Andrew Straw schrieb:
Thomas Schreiner wrote:
Am I doing anything wrong in this program? It's crashing immediately after the "before" line, using Borland C++ Builder 6 and numpy-1.0.3.1.win32-py2.4. You have to call import_array() before using the C API.
Thanks a lot, that was the problem. There still seems to be a bug in #define import_array(): In my version of __multiarray_api.h, this line ends with "return;", which my compiler doesn't accept. If I replace it by "return(0);" it's perfectly fine.
Look for import_array1 instead then. --bb
On Mon, Sep 24, 2007 at 06:07:29PM +0300, dmitrey wrote:
I don't know anything about C API, but scipy documentation from the website http://www.scipy.org/doc/api_docs/ is dated 14 August 2007, so scipy 0.6.0 doc differs significantly. D.
I was confused until I checked that page -- you mean 2006, not 2007 :-) So yes, a year out of date instead of a month. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
Thomas Schreiner wrote:
Hi,
is there any more documentation about the numpy C API than the one at http://projects.scipy.org/scipy/numpy/wiki/NumPyCAPI
If you have not already done so, I recommend following the suggestion at the bottom of that page, and buying Travis's book (http://www.trelgol.com/). It has a large section on the C API. Eric
?
This one deals mostly with creating NumPy arrays in C, but I'm more interested in manually filling the arrays with actual data, because wrapping of memory is not possible in my scenario.
Thanks,
Thomas _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
participants (6)
-
Andrew Straw
-
Bill Baxter
-
David M. Cooke
-
dmitrey
-
Eric Firing
-
Thomas Schreiner