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 <Python.h> #include <numpy/arrayobject.h> #include "numpy/ufuncobject.h" #include <float.h> int main() { _control87(MCW_EM, MCW_EM); Py_Initialize(); PyImport_ImportModule("numpy"); PyObject *array; int dim[1] = { 5 }; std::cout << "before" << std::endl; array = PyArray_SimpleNew(1, dim, PyArray_SHORT); std::cout << "after" << std::endl; Py_Finalize(); return 0; } Thanks a lot, Thomas _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion