A= [[4,0,1], [8,0,1]]
B = [[4,1,1], [8,0,1]]
Output= [[4,0,1], [8,0,1]]
I have 2 numpy arrays A and B and I want to get an output nparray which is like an XOR of the values in the 2 original array i.e. if the cells are same, keep the value, if they are different, put a 0 there. What is the best way to do this? Thank You in advance.
A.