I thought that in would be good for this but it returns true in places where it shouldn't. For example:
import numpy as np
a = np.array([])
for i in range(3):
for j in range(3):
a = np.append(a,[i,j])
a = np.reshape(a,(9,2))
print(a)
print([[0,40]] in a)
will print true. I cannot understand why it does this... is it because 0 is in the list? I'd like to have something that only prints true if the entire array is in the list.
I want to have my list
[[0,1],
[0,2]]
and only return true if exactly [0,x] (same shape same order) is in it.
abythree = np.arange(3.0); np.array([np.repeat(three, 3), np.tile(three, 3)]).T.