[Numpy-discussion] Getting an item in an array with its coordinates given by another array

Matthieu Brucher matthieu.brucher at gmail.com
Mon Oct 29 05:54:27 EDT 2007


>
> > But if I have the coordinates of the points in an array, I have to
> reshape it
> > and then convert it into a list. Or convert it into a list and then
> convert it
> > to a tuple. I know that advanced indexing is useful, but here it is not
> > coherent. tuples and lists should have the same result on the array, or
> at
> > least it should be documented.
>
> I can't give you the reasons why that behaviour was chosen. But it's
> simply
> wrong that it's not documented. Before answering you I read the
> corresponding
> chapter in the numpy book to be sure not to tell you nonsense. So go ahead
> and
> do so, too.



Thank you for this answer, I suppose we'll have to wait the answer of a
numpy guru ;)

Matthieu
-- 
French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20071029/7b402885/attachment.html>


More information about the NumPy-Discussion mailing list