[Numpy-discussion] Re: Numeric3 PEP
juenglin at cs.pdx.edu
Sun Feb 20 23:32:00 EST 2005
Tim Hochberg wrote:
> I'd like to lobby against flatten(), r() and i(). To a large extent,
> these duplicate the functionality of flat, real and imag. And, these
> three methods are defined to sometimes return copies and sometimes
> return views. That type of interface is a recipe for errors and should
> only be used as a last resort.
I feel the same.
> Flatten() is not necessary now that flat will be faux array with a view
> to the original [I believe you are calling it an indexable iterator]. I
> would, however, recomend that A.flat.copy() work. In that case, A.flat
> would be used when no copy was desired, and A.flat.copy() when a copy
> was desired.
More information about the NumPy-Discussion