Re: [Numpy-discussion] tostring() for array rows

2009-10-09 Thread josef . pktd
On Wed, Oct 7, 2009 at 1:20 PM, Christopher Barker wrote: > josef.p...@gmail.com wrote: > >> I wanted to avoid the python loop and thought creating the view will be >> faster >> with large arrays. But for this I need to know the memory length of a >> row of arbitrary types for the conversion to s

Re: [Numpy-discussion] [review] Easy win to improve numpy import times by 30 %

2009-10-09 Thread Peter
On Fri, Oct 9, 2009 at 5:56 AM, David Cournapeau wrote: > > Since inspect is used in quite a few places, and that we only use it to > extract arguments from a function, I added a small numpy.lib.inspect > module, and ... Is numpy.lib intended as a public API? How about numpy.lib._inspect instead

Re: [Numpy-discussion] [review] Easy win to improve numpy import times by 30 %

2009-10-09 Thread Chris Barker
David Cournapeau wrote: > This branch improves numpy import times quite significantly on slow > machines: > I think it largely worths it, and will integrate this unless someone is > strongly against it or see a problem with the approach, +1 -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Numpy-discussion] PyArray_FROM_OF from Cython

2009-10-09 Thread Dag Sverre Seljebotn
David Warde-Farley wrote: > On 8-Oct-09, at 6:47 PM, Robert Kern wrote: > >> On Thu, Oct 8, 2009 at 17:28, David Warde-Farley >> wrote: >>> I'm trying to use PyArray_FROM_OF from Cython and the generated C >>> code >>> keeps crashing. Dag said on the Cython list that he wasn't sure what >>>