[Numpy-discussion] finding index in an array...
fred
petit.frederic@free...
Fri Jun 12 18:08:48 CDT 2009
Hi,
Say I have an array A with shape (10,3) and
A[3,:] = [1,2,3]
I want to find the index of the array in which I have these values [1,2,3].
How can I do that?
The only workaround I have found is to use a list:
A.tolist().index([1,2, 3])
That works fine, but is there a better solution (without using list, for
instance)?
TIA.
Cheers,
--
Fred
More information about the Numpy-discussion
mailing list