Vector.Xor Method

Computes the exclusive disjunction of two boolean vectors.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left and right do not have the same length.

See Also