[Numpy-discussion] Can not update a submatrix

Hans Meine meine at informatik.uni-hamburg.de
Wed Jan 30 10:26:50 EST 2008


Am Mittwoch, 30. Januar 2008 16:21:40 schrieb Nadav Horesh:
> But:
> >>> R[ax,:] = 100

This is calling __setitem__, i.e. does not create either a view or a copy.

Non-contiguous views (e.g. using [::2]) are also possible AFAIK, but fancy 
indexing is something different.

-- 
Ciao, /  /
     /--/
    /  / ANS



More information about the NumPy-Discussion mailing list