Re: [Numpy-discussion] Best way to broadcast a function from C

2014-08-22 Thread James Crist
Thu, Aug 21, 2014 at 2:34 AM, James Crist wrote: > > All, > > > > I have a C function func that takes in scalar arguments, and an array of > > fixed dimension that is modified in place to provide the output. The > > prototype is something like: > > &g

[Numpy-discussion] Best way to broadcast a function from C

2014-08-20 Thread James Crist
All, I have a C function func that takes in scalar arguments, and an array of fixed dimension that is modified in place to provide the output. The prototype is something like: `void func(double a, double b, double c, double *arr);` I've wrapped this in Cython and called it from python with no pr