[Numpy-discussion] Ravel and inplace modification

Stéfan van der Walt stefan at sun.ac.za
Sat Mar 22 07:54:53 EDT 2008


On Thu, Mar 20, 2008 at 4:11 PM, Charles R Harris
<charlesr.harris at gmail.com> wrote:
> On Thu, Mar 20, 2008 at 6:04 AM, Gael Varoquaux
> There are alternative methods: a.flatten will always return a copy and
> a.flat will return an iterator. Perhaps those should be suggested in cases

And for the record: x.flat does not make a copy and can be assigned to as well.

Stéfan



More information about the NumPy-Discussion mailing list