Vector256.ConditionalSelect<T> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
有條件地以位為基礎,從兩個向量中選取值。
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>
用來從 left
或 right
中選取值的遮罩。
- left
- Vector256<T>
當 中的 condition
對應位為一時,所選取的向量。
- right
- Vector256<T>
當 中的 condition
對應位為零時,所選取的向量。
傳回
其位來自 left
或 right
以 的值 condition
為基礎的向量。
例外狀況
不支援 、 left
和 right
() T
的類型 condition
。