[Numpy-discussion] PEP: named axis

Robert Kern robert.kern@gmail....
Fri Feb 6 00:20:37 CST 2009


On Fri, Feb 6, 2009 at 00:13, Christopher Barker <Chris.Barker@noaa.gov> wrote:
> Travis Oliphant wrote:
>>   What do people think
>> about adding a default dictionary to every instance of a NumPy array.
>
> It sound kind of heavyweight to me. I tend to use lots of small arrays
> (to represent an x,y point, for instance). There are enough performance
> issues with that as it stands. Maybe an empty dict isn't much, but it is
> extra.

I think we can create the dict on demand, so there will be no overhead
except for the space for the pointer in the struct.

-- 
Robert Kern

"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 mailing list