共用方式為


Vector128.ConditionalSelect<T> 方法

定義

有條件地從兩個向量中選取一個值,以位為基礎。

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)

類型參數

T

向量中專案的型別。

參數

condition
Vector128<T>

用來從 leftright選取值的遮罩。

left
Vector128<T>

當中的 condition 對應位為一個時,所選取的向量。

right
Vector128<T>

當中的 condition 對應位為零時,所選取的向量。

傳回

位來自 leftright 以的值 condition為基礎的向量。

例外狀況

不支援、 leftright () T 類型condition

適用於