I'm trying to find a sequence of elements in a numpy array as efficiently as possible.
I have an array like ['6' '1' '6' '9' '6' 'e' '2'].
Now I want to search for the position of the sequence '9' '6'.
In practice, however, the array is much larger and can contain the value several times. Then I would have to get all positions.
I've googled a lot, but couldn't find anything.
Can you help me please?
Asked
Active
Viewed 8 times
0
BIOS
- 25
- 5