find array elements that are members of set array in python ()
问题 I am new to python and my question might seem very badly explained because I have background in MATLAB. usually in MATLAB if we have 1000 arrays of 15*15 we define a cell or a 3D matrix which each element is a matrix with size (15*15). Now in python: (using numpy library) I have a ndarray A with shape (1000,15,15). I have another ndarry B with shape (500,15,15). I am trying to find elements in A that are member in B too. I am specifically looking for a vector to be returned with the indices