export an array of floats to python
concludes with sturlamolden saying, "Now return myarray and be happy." and Peter Wuertz saying, "Thank you! Thats the complete solution *g*"
This is all good. But I am stuck on the python side where I want to see the array.
I have a c shared library function like
Expand|Select|Wrap|Line Numbers
- PyObject *theArray(void)
- {
- return PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, void* data);
- }
Expand|Select|Wrap|Line Numbers
- thing = mylib.theArray
- print thing