Let's say I have np.array of a = [0, 1, 1, 0, 0, 1] and b = [1, 1, 0, 0, 0, 1]
I want a new matrix c such that if a[i] = 0 and b[i] = 0 then c[i] = True
I've tried using c = np.where(a == 0 & b==0) but seems this won't work on two arrays.
Ultimately I want a count of '0's that are true in both cases and '1's that are true in both cases without using any loops and external libraries. Please advise.