The only idea I have:
Transforming the matrices into two lists, and a nested for cycle...
Transforming the matrices into two lists, and a nested for cycle...
a_lista=a.tolist() b_lista=b.tolist() #"a" and "b" were my previously defined np.matrices for i in range(4): for j in range(4): if a_lista[i]==b_lista[j]: print(i,j,a_lista[i])Unfortunately, my "solution" is realy crap, because I want to use this on far bigger matrices :-(