[Numpy-discussion] PEP: named axis
Fri Feb 6 02:10:28 CST 2009
On Fri, Feb 06, 2009 at 12:20:37AM -0600, Robert Kern wrote:
> 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.
I am +1 for the dict created on demand. It seems like a great idea to
More information about the Numpy-discussion