[Numpy-discussion] Extensive use of methods instead of functions
perry at stsci.edu
Tue Jan 28 13:59:08 CST 2003
> Yes, this is critical. Isn't there a plan to make the scalar -- rank-0
> array dicotomy a little cleaner in NumArray ?
Hmmm, I'd like to say yes, but I'm not sure what exactly you are
referring to. Please elaborate on how you think it should be
changed. About the only thing that comes to mind is that repr()
for rank-0 will be different for numarray than Numeric, and that
it will never be the result of any reduction or similar selection.
> > > I also agree that the point is not subclassing per se, it's
> > > polymorphism. It should be easy to write a class that acts
> like an array
> > > in all the ways that you need it to.
> > True, and that is a weak point of NumPy.
> Is this getting any better with NumArray?
Again, I hope so, but I find this too general to know if it satisfies
anyone's specific goals. I'd like to see specific examples. I think
it is often tricker than people initially think.
More information about the Numpy-discussion