I'm trying to use NumPy in a C extension for python.
I'm getting a segfault I can't explain, I've narrowed it down to this simple example.
#include "numpy/arrayobject.h"
int main()
{
int dims[] = {1};
double d[] = {1};
PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, &d);
}