Method OnesComplement
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
OnesComplement<T>(Vector128<T>)
Computes the ones-complement of a vector (计算向量的反码).
Mnemonic: rt[i] := ~vector[i]
.
public static Vector128<T> OnesComplement<T>(Vector128<T> vector) where T : struct
Parameters
vector
Vector128<T>The vector whose ones-complement is to be computed (要计算其反码的向量).
Returns
- Vector128<T>
A vector whose elements are the ones-complement of the corresponding elements in
vector
(一个向量,其元素是vector
相应元素的反码).
Type Parameters
T
The vector element type (向量中的元素的类型).
- See Also
-
OnesComplement<T>(Vector128<T>)