Freigeben über


Vector128.ConditionalSelect<T> Methode

Definition

Wählt einen Wert auf bitweiser Basis bedingt aus zwei Vektoren aus.

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)

Typparameter

T

Der Typ der Elemente im Vektor.

Parameter

condition
Vector128<T>

Die Maske, die zum Auswählen eines Werts aus left oder rightverwendet wird.

left
Vector128<T>

Der Vektor, der ausgewählt wird, wenn das entsprechende Bit eins condition ist.

right
Vector128<T>

Der Vektor, der ausgewählt wird, wenn das entsprechende Bit in condition null ist.

Gibt zurück

Ein Vektor, dessen Bits aus left oder right basierend auf dem Wert von conditionstammen.

Ausnahmen

Der Typ von condition, leftund right (T) wird nicht unterstützt.

Gilt für: