.TRANSFORM.Math.xor

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}

Interface

function xor
  input Integer x1[:];
  input Integer x2[size(x1, 1)];
  output Integer y[size(x1, 1)];
end xor;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos