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

Definition

Computes the ones-complement of a vector.

C#
public static System.Runtime.Intrinsics.Vector256<T> OnesComplement<T>(System.Runtime.Intrinsics.Vector256<T> vector) where T : struct;
C#
public static System.Runtime.Intrinsics.Vector256<T> OnesComplement<T>(System.Runtime.Intrinsics.Vector256<T> vector);

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector256<T>

The vector whose ones-complement is to be computed.

Returns

A vector whose elements are the ones-complement of the corresponding elements in vector.

Exceptions

The type of vector (T) is not supported.

Applies to

Product Versions
.NET 7, 8, 9