共用方式為


Vector64.ConditionalSelect<T> 方法

定義

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

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)

類型參數

T

向量中專案的型別。

參數

condition
Vector64<T>

用來從 leftright中選取值的遮罩。

left
Vector64<T>

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

right
Vector64<T>

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

傳回

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

例外狀況

不支援、 leftright () T 的類型condition

適用於