I have two nxm matrices of 1's and 0's (call them A and B). I want to convert them to Boolean variables and then apply "and" and "or" operations to them. In python, this is easy:
A = np.array(A, dtype=bool)
B = np.array(B, dtype=bool)
A | B
A & B
However, I want to do the same thing in Julia, and I am having some issues. I first convert to Boolean via
A = convert(Array{Bool}, A)
B = convert(Array{Bool},B)
But then I do A&&B, I get
TypeError: non-boolean (Array{Bool,2}) used in boolean context
What am I doing wrong?