[Numpy-discussion] C-API Documentation?

Thomas Schreiner tmp-numpy@tschreiner....
Mon Sep 24 11:04:18 CDT 2007


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 

#include <iostream>
#include <Python.h>
#include <numpy/arrayobject.h>
#include "numpy/ufuncobject.h"
#include <float.h>

int main()
   _control87(MCW_EM, MCW_EM);

   PyObject *array;
   int dim[1] = { 5 };

   std::cout << "before" << std::endl;
   array = PyArray_SimpleNew(1, dim, PyArray_SHORT);
   std::cout << "after" << std::endl;

   return 0;

Thanks a lot,


More information about the Numpy-discussion mailing list