Udostępnij za pośrednictwem


Vector64.ConditionalSelect<T> Metoda

Definicja

Warunkowo wybiera wartość z dwóch wektorów na zasadzie bitowej.

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

Parametry typu

T

Typ elementów w wektorze.

Parametry

condition
Vector64<T>

Maska używana do wybierania wartości z left lub right.

left
Vector64<T>

Wektor wybrany, gdy odpowiedni bit w condition obiekcie jest jeden.

right
Vector64<T>

Wektor wybrany, gdy odpowiedni bit w condition obiekcie ma wartość zero.

Zwraca

Wektor, z którego bity pochodzą lub leftright na podstawie wartości condition.

Wyjątki

Typ condition, lefti right (T) nie jest obsługiwany.

Dotyczy