I have a vector of bool vals;
V1 = [0,1,0,1]
V2 = [1,0,0,1]
V3 = [1,1,1,1]
V4 = [0,0,0,1]
V1*V2 = [0,0,0,0]
V1*V3 = [0,1,0,1]
V1*V4 = [0,0,0,1]
what is fastest way to perform the following operation in C++
if V1*V2 = V1 then true else false?
if V1*V3 = V1 then true else false?
if V1*V4 = V1 then true else false?
is there a way to do it with addition/subtraction instead of multiplication?
when I do subtraction the -1 val become a true.