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