Method YOrNot
- Namespace
- Zyl.VectorTraits.Impl.AVector
- Assembly
- VectorTraits.dll
YOrNot<T>(Vector<T>, Vector<T>)
Computes the bitwise-or of a given vector or the ones complement of another vector (计算一个给定的向量和另一个向量反码的位或).
Mnemonic: rt[i] := left[i] | ~right[i].
public static Vector<T> YOrNot<T>(Vector<T> left, Vector<T> right) where T : struct
Parameters
leftVector<T>The vector to bitwise-or with
right(将会与right进行位或运算的向量).rightVector<T>The vector to that is ones-complemented before being bitwise-or with
left(将会与left进行位或运算, 并使用反码的向量).
Returns
- Vector<T>
The bitwise-or of
leftor the ones-complement ofright(left与right反码 的位或运算结果).
Type Parameters
TThe vector element type (向量中的元素的类型).
- See Also