Vector.Xor Method

Computes the exclusive disjunction of two boolean vectors.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Vector<bool> Xor(
	Vector<bool> left,
	Vector<bool> right
)

Parameters

left  Vector<Boolean>
The first vector.
right  Vector<Boolean>
The second vector.

Return Value

Vector<Boolean>
A vector whose elements are the exclusive disjunction (exclusive 'or') of the corresponding elements of left and right.

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same length.

See Also