次の方法で共有


Vector256.ConditionalSelect<T> メソッド

定義

ビットごとの 2 つのベクトルから値を条件付きで選択します。

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>

または rightからleft値を選択するために使用されるマスク。

left
Vector256<T>

の対応するビットが 1 の場合に condition 選択されるベクター。

right
Vector256<T>

の対応するビットが 0 の場合に condition 選択されるベクトル。

戻り値

ビットが または leftright の値 conditionに基づくベクトル。

例外

left、および right (T) のcondition型はサポートされていません。

適用対象