[Numpy-discussion] numpy.dot causes segfault after ctypes call to cudaMalloc

2013-12-18 Thread ebuchman
I'm learning cuda and decided to use python with ctypes to call all the cuda functions but I'm finding some memory issues. I've boiled it down to the simplest scenario. I use ctypes to call a cuda function which allocates memory on the device and then frees it. This works fine, but if I then try

Re: [Numpy-discussion] polyfit

2013-12-18 Thread Charles R Harris
On Wed, Dec 18, 2013 at 3:38 PM, Charles R Harris wrote: > > > > On Wed, Dec 18, 2013 at 3:23 PM, Alan G Isaac wrote: > >> For teaching it is certainly nice to have >> numpy.polynomial.polynomial.polyfit >> providing modern (vs. traditional) parameter order, but >> >> - it is rather buried >> - n

Re: [Numpy-discussion] polyfit

2013-12-18 Thread Charles R Harris
On Wed, Dec 18, 2013 at 3:23 PM, Alan G Isaac wrote: > For teaching it is certainly nice to have > numpy.polynomial.polynomial.polyfit > providing modern (vs. traditional) parameter order, but > > - it is rather buried > - np.polyfit uses traditional order and has the same name > > I recall there

[Numpy-discussion] polyfit

2013-12-18 Thread Alan G Isaac
For teaching it is certainly nice to have numpy.polynomial.polynomial.polyfit providing modern (vs. traditional) parameter order, but - it is rather buried - np.polyfit uses traditional order and has the same name I recall there was some controversy (?) over all of this, but might it not be appro

Re: [Numpy-discussion] repeat array in a fake dim without stride_tricks ?

2013-12-18 Thread Sebastian Berg
On Tue, 2013-12-17 at 16:41 +0100, Pierre Haessig wrote: > Le 13/12/2013 13:45, Sebastian Berg a écrit : > >> What are the other options for such a repeat ? > > No, I don't think there are any other options. stride tricks are a bit > > hidden, since in many cases it is more dangerous than helping.