共用方式為


Vector256.ConditionalSelect<T> 方法

定義

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

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

類型參數

T

向量中專案的型別。

參數

condition
Vector256<T>

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

left
Vector256<T>

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

right
Vector256<T>

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

傳回

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

例外狀況

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

適用於