Re: [Numpy-discussion] Initializing array from buffer

2014-11-21 Thread Sturla Molden
On 18/11/14 04:21, Robert McGibbon wrote: > The np.ndarray constructor > takes > a strides argument argument, and a buffer. Is it not sufficiently flexible? > > -Robert AFAIK the buffer argument is not a memory address but an

Re: [Numpy-discussion] return type from ufuncs

2014-11-21 Thread Marek Wojciechowski
Dnia piÄ…tek, 21 listopada 2014 00:09:51 Nathaniel Smith pisze: > On Thu, Nov 20, 2014 at 5:47 PM, Marek Wojciechowski wrote: > > Hi! > > > > I wrote a simple subclass of np.ndarray and now i do call np.sum() on it. > > I > > expected that the result will be a python float (or int) just like when