[Numpy-discussion] help vectorizing something
Fri Oct 24 16:48:55 CDT 2008
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:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion