Compartir vía


Vector256.ConditionalSelect<T> Método

Definición

Selecciona condicionalmente un valor de dos vectores de forma bit a bit.

public:
generic <typename T>
 where T : value class static System::Runtime::Intrinsics::Vector256<T> ConditionalSelect(System::Runtime::Intrinsics::Vector256<T> condition, System::Runtime::Intrinsics::Vector256<T> left, System::Runtime::Intrinsics::Vector256<T> right);
public:
generic <typename T>
 static System::Runtime::Intrinsics::Vector256<T> ConditionalSelect(System::Runtime::Intrinsics::Vector256<T> condition, System::Runtime::Intrinsics::Vector256<T> left, System::Runtime::Intrinsics::Vector256<T> right);
public static System.Runtime.Intrinsics.Vector256<T> ConditionalSelect<T> (System.Runtime.Intrinsics.Vector256<T> condition, System.Runtime.Intrinsics.Vector256<T> left, System.Runtime.Intrinsics.Vector256<T> right) where T : struct;
public static System.Runtime.Intrinsics.Vector256<T> ConditionalSelect<T> (System.Runtime.Intrinsics.Vector256<T> condition, System.Runtime.Intrinsics.Vector256<T> left, System.Runtime.Intrinsics.Vector256<T> right);
static member ConditionalSelect : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> -> System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> (requires 'T : struct)
static member ConditionalSelect : System.Runtime.Intrinsics.Vector256<'T> * System.Runtime.Intrinsics.Vector256<'T> * System.Runtime.Intrinsics.Vector256<'T> -> System.Runtime.Intrinsics.Vector256<'T>
Public Function ConditionalSelect(Of T As Structure) (condition As Vector256(Of T), left As Vector256(Of T), right As Vector256(Of T)) As Vector256(Of T)
Public Function ConditionalSelect(Of T) (condition As Vector256(Of T), left As Vector256(Of T), right As Vector256(Of T)) As Vector256(Of T)

Parámetros de tipo

T

Tipo de los elementos del vector.

Parámetros

condition
Vector256<T>

Máscara que se usa para seleccionar un valor de left o right.

left
Vector256<T>

Vector seleccionado cuando el bit correspondiente de condition es uno.

right
Vector256<T>

Vector seleccionado cuando el bit correspondiente de condition es cero.

Devoluciones

Vector cuyos bits proceden o leftright se basan en el valor de condition.

Excepciones

No se admite el tipo de condition, lefty right (T).

Se aplica a