functionxor

Information

Computes the truth value of x1 XOR x2 using binary.

Similar to https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.logical_xor.html except with [1,0];


For example:

x1 = {1,0,1,0,0}

x2 = {0,1,1,0,1}

y = {1,1,0,0,1}

Inputs

TypeNameDefaultDescription
Integer[:]x1
Integer[size(x1, 1)]x2

Outputs

TypeNameDefaultDescription
Integer[size(x1, 1)]y