[Numpy-discussion] Resize Method for Numpy Array
Thu Sep 24 18:09:50 CDT 2009
On Thu, Sep 24, 2009 at 18:05, Sturla Molden <email@example.com> wrote:
> Robert Kern skrev:
>> collections.deque() is a linked list of 64-item chunks.
> Thanks for that useful information. :-) But it would not help much for a
> binary tree...
> Since we are on the NumPy list... One could image making linked lists
> using NumPy arrays with dtype=object. They are storage efficient like
> tuples, and mutable like lists.
> def cons(a,b):
> return np.array((a,b),dtype=object)
> But I guess the best way is to implement a real linked extension type in
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion