Vector<T>.ExclusiveOr(Vector<T>, Vector<T>) 運算子

定義

透過在兩個向量的每個元素上執行位元 XOr 運算,以傳回新的向量。Returns a new vector by performing a bitwise XOr operation on each of the elements in two vectors.

public:
 static System::Numerics::Vector<T> operator ^(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
public static System.Numerics.Vector<T> operator ^ (System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);
static member ( ^^^ ) : System.Numerics.Vector<'T (requires 'T : struct)> * System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Shared Operator Xor (left As Vector(Of T), right As Vector(Of T)) As Vector(Of T)

參數

left
Vector<T>

第一個向量。The first vector.

right
Vector<T>

第二個向量。The second vector.

傳回

Vector<T>

leftright 的元素進行位元 XOr 所得到的向量。The vector that results from the bitwise XOr of the elements in left and right.

例外狀況

.NET 5.0 和更新版本:不支援 T 類型。.NET 5.0 and later: Type T is not supported.

備註

ExclusiveOr 方法會定義 Vector<T> 物件的位 XOr 運算。The ExclusiveOr method defines the bitwise XOr operation for Vector<T> objects.

適用於