Vector.OnesComplement(Vector<T>) Vector.OnesComplement(Vector<T>) Vector.OnesComplement(Vector<T>) Vector.OnesComplement(Vector<T>) Method

定义

返回一个新向量,其元素是通过取用指定向量的元素的二进制反码来获取的。Returns a new vector whose elements are obtained by taking the one's complement of a specified vector's elements.

public:
generic <typename T>
 where T : value class static System::Numerics::Vector<T> OnesComplement(System::Numerics::Vector<T> value);
public static System.Numerics.Vector<T> OnesComplement<T> (System.Numerics.Vector<T> value) where T : struct;
static member OnesComplement : System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)> (requires 'T : struct)
Public Shared Function OnesComplement(Of T As Structure) (value As Vector(Of T)) As Vector(Of T)

类型参数

T

向量类型。The vector type. T可以是任何基元数值类型。T can be any primitive numeric type.

参数

value
Vector<T> Vector<T> Vector<T> Vector<T>

源向量。The source vector.

返回

所得的向量。The resulting vector.

适用于