Defined a 1d array (or a 1d slice of a bigger array), like:
a=np.array([ 5, 12, 13])
if there some higher dimension array, like:
c1=np.array([[1, 2, 3], [ 5, 12, 13], [7, 8, 9]])
c2=np.array([[1, 2, 3], [ 5, 6, 7], [7, 8, 9]])
It turns out to be:
a in c1, a in c2
(True, True)
I would like that only the first condition, where a is consecutively contained as sub-array to be True. While a in c2 would give False.
Is there any function taking care of that?
Truenot just accidentally true? If you change a toa=np.array([ 5, 12, 13])the output is(True, False)and should be(False, False).a in c1.T?