I found a solution that works. What I did was I wrote a custom class
to define the argtypes. The from_param(obj) method calls ndpointer
when it is a numpy array or if obj is none it returns a null pointer.
On Fri, Mar 11, 2011 at 1:25 PM, Josh Mayer wrote:
> I am trying to call a C function t
I am trying to call a C function that takes a double array as one of
its parameters.
I am using ndpointer to define the argtypes so that I can pass a numpy
array directly. The issue I'm having is that this parameter need not
always be set, and when it is not set, the C functions expects a null
po