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 of elements in A that are found in B too.
Usually in MATLAB I reshape them to make 2D arrays (1000*225) and (500*225) and use 'ismember' function, passing 'rows' argument to find and return the index of the similar rows.
Are there any similar functions in numpy (or any other library) to do the same? I am trying to aviod for loop.
Thanks