[Numpy-discussion] Can not update a submatrix

Hans Meine meine@informatik.uni-hamburg...
Wed Jan 30 09:26:50 CST 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