Table of Contents

Method Xor

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

Xor<T>(Vector256<T>, Vector256<T>)

Computes the exclusive-or of two vectors (计算两个向量的位异或). Mnemonic: rt[i] := left[i] ^ right[i].

Vector256<T> Xor<T>(Vector256<T> left, Vector256<T> right) where T : struct

Parameters

left Vector256<T>

The vector to exclusive-or with right (将会与right进行位异或运算的向量).

right Vector256<T>

The vector to exclusive-or with left (将会与left进行位异或运算的向量).

Returns

Vector256<T>

The exclusive-or of left and right (leftright 的位异或运算结果).

Type Parameters

T

The vector element type (向量中的元素的类型).

See Also