Method OnesComplement
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
OnesComplement<T>(Vector256<T>)
Computes the ones-complement of a vector (计算向量的反码).
Mnemonic: rt[i] := ~vector[i]
.
Vector256<T> OnesComplement<T>(Vector256<T> vector) where T : struct
Parameters
vector
Vector256<T>The vector whose ones-complement is to be computed (要计算其反码的向量).
Returns
- Vector256<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>(Vector256<T>)