Is there a way I can check to see whether a matrix in Numpy contains a specific vector?
i.e.
X = np.array([[1, 1, 1], [2, 2, 2], [3, 3, 3]])
v = np.array([1, 1, 1])
I want to be able to test: bool = v
in X
. I know this doesn't work with Numpy and wonder if there is a ay to test this without obnoxious loops? Thanks for any help!