Condividi tramite


Vector128.ConditionalSelect<T> Metodo

Definizione

Seleziona in modo condizionale un valore da due vettori in modo bit per bit.

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

Parametri di tipo

T

Tipo degli elementi nel vettore.

Parametri

condition
Vector128<T>

Maschera usata per selezionare un valore da left o right.

left
Vector128<T>

Vettore selezionato quando il bit corrispondente in condition è uno.

right
Vector128<T>

Vettore selezionato quando il bit corrispondente in condition è zero.

Restituisce

Vettore i cui bit provengono da left o right in base al valore di condition.

Eccezioni

Il tipo di condition, lefte right (T) non è supportato.

Si applica a