4 Dec
2006
4 Dec
'06
5:27 a.m.
What are the semantics of the "take" function? I would have expected that the following have the same shape and size:
a = array([1,2,3]) inds = a.nonzero() a[inds] array([1, 2, 3]) a.take(inds) array([[1, 2, 3]])
Is there a bug somewhere here or is this intentional? Michael.