Re: [Numpy-discussion] Can't get ufunc to work for integers

2010-07-22 Thread John Salvatier
This did end up solving my problem. Thanks! On Thu, Jul 22, 2010 at 9:25 AM, John Salvatier wrote: > Oh, ok. That makes sense. Thanks for the speedy help. > > John > > > On Thu, Jul 22, 2010 at 9:14 AM, Pauli Virtanen wrote: > >> Thu, 22 Jul 2010 08:49:09 -0700, John Salvatier wrote: >> > I am t

Re: [Numpy-discussion] Can't get ufunc to work for integers

2010-07-22 Thread John Salvatier
Oh, ok. That makes sense. Thanks for the speedy help. John On Thu, Jul 22, 2010 at 9:14 AM, Pauli Virtanen wrote: > Thu, 22 Jul 2010 08:49:09 -0700, John Salvatier wrote: > > I am trying to learn how to create ufuncs, and I got a ufunc to compile > > correctly with the signature int -> double,

Re: [Numpy-discussion] Can't get ufunc to work for integers

2010-07-22 Thread Pauli Virtanen
Thu, 22 Jul 2010 08:49:09 -0700, John Salvatier wrote: > I am trying to learn how to create ufuncs, and I got a ufunc to compile > correctly with the signature int -> double, but I can't get it to accept > any arguments. My function is testfunc and I used NPY_INT as the first > signature and NPY_DO

[Numpy-discussion] Can't get ufunc to work for integers

2010-07-22 Thread John Salvatier
Hello, I am trying to learn how to create ufuncs, and I got a ufunc to compile correctly with the signature int -> double, but I can't get it to accept any arguments. My function is testfunc and I used NPY_INT as the first signature and NPY_DOUBLE as the second signature. What should I look at to