Table of Contents

Method OnesComplement

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

OnesComplement<T>(Vector512<T>)

Computes the ones-complement of a vector (计算向量的反码). Mnemonic: rt[i] := ~vector[i].

public static Vector512<T> OnesComplement<T>(Vector512<T> vector) where T : struct

Parameters

vector Vector512<T>

The vector whose ones-complement is to be computed (要计算其反码的向量).

Returns

Vector512<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