[Numpy-discussion] help vectorizing something
Mathew Yeates
mat.yeates at gmail.com
Fri Oct 24 17:48:55 EDT 2008
Hi
I have 2 vectors A and B. For each value in A I want to find the location
in B of the same value. Both A and B have unique elements.
Of course I could something like
For each index of A:
v =A[index]
location = numpy.where(B == v)
But I have very large lists and it will take too long.
Thanks to any one of you vectorization gurus that has any ideas.
Mathew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20081024/bcff5eb2/attachment.html>
More information about the NumPy-Discussion
mailing list