共用方式為


Vector.ConditionalSelect 方法

定義

多載

ConditionalSelect(Vector<Int32>, Vector<Single>, Vector<Single>)

建立新的單精度向量,其中根據整數遮罩向量,在兩個指定的單精度來源向量之間選取元素。

ConditionalSelect(Vector<Int64>, Vector<Double>, Vector<Double>)

根據整數遮罩向量,建立新的雙精確度向量,並在兩個指定的雙精確度來源向量之間選取元素。

ConditionalSelect<T>(Vector<T>, Vector<T>, Vector<T>)

使用以整數遮罩向量為基礎的兩個指定來源向量之間選取的專案,建立指定型別的新向量。

ConditionalSelect(Vector<Int32>, Vector<Single>, Vector<Single>)

來源:
Vector.cs
來源:
Vector.cs
來源:
Vector.cs

建立新的單精度向量,其中根據整數遮罩向量,在兩個指定的單精度來源向量之間選取元素。

public:
 static System::Numerics::Vector<float> ConditionalSelect(System::Numerics::Vector<int> condition, System::Numerics::Vector<float> left, System::Numerics::Vector<float> right);
public static System.Numerics.Vector<float> ConditionalSelect (System.Numerics.Vector<int> condition, System.Numerics.Vector<float> left, System.Numerics.Vector<float> right);
static member ConditionalSelect : System.Numerics.Vector<int> * System.Numerics.Vector<single> * System.Numerics.Vector<single> -> System.Numerics.Vector<single>
Public Shared Function ConditionalSelect (condition As Vector(Of Integer), left As Vector(Of Single), right As Vector(Of Single)) As Vector(Of Single)
Public Function ConditionalSelect (condition As Vector(Of Integer), left As Vector(Of Single), right As Vector(Of Single)) As Vector(Of Single)

參數

condition
Vector<Int32>

用來驅動選取範圍的整數遮罩向量。

left
Vector<Single>

第一個來源向量。

right
Vector<Single>

第二個來源向量。

傳回

新的向量,其中包含根據遮罩選取的專案。

適用於

ConditionalSelect(Vector<Int64>, Vector<Double>, Vector<Double>)

來源:
Vector.cs
來源:
Vector.cs
來源:
Vector.cs

根據整數遮罩向量,建立新的雙精確度向量,並在兩個指定的雙精確度來源向量之間選取元素。

public:
 static System::Numerics::Vector<double> ConditionalSelect(System::Numerics::Vector<long> condition, System::Numerics::Vector<double> left, System::Numerics::Vector<double> right);
public static System.Numerics.Vector<double> ConditionalSelect (System.Numerics.Vector<long> condition, System.Numerics.Vector<double> left, System.Numerics.Vector<double> right);
static member ConditionalSelect : System.Numerics.Vector<int64> * System.Numerics.Vector<double> * System.Numerics.Vector<double> -> System.Numerics.Vector<double>
Public Shared Function ConditionalSelect (condition As Vector(Of Long), left As Vector(Of Double), right As Vector(Of Double)) As Vector(Of Double)
Public Function ConditionalSelect (condition As Vector(Of Long), left As Vector(Of Double), right As Vector(Of Double)) As Vector(Of Double)

參數

condition
Vector<Int64>

用來驅動選取範圍的整數遮罩向量。

left
Vector<Double>

第一個來源向量。

right
Vector<Double>

第二個來源向量。

傳回

新的向量,其中包含根據遮罩選取的專案。

適用於

ConditionalSelect<T>(Vector<T>, Vector<T>, Vector<T>)

來源:
Vector.cs
來源:
Vector.cs
來源:
Vector.cs

使用以整數遮罩向量為基礎的兩個指定來源向量之間選取的專案,建立指定型別的新向量。

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

類型參數

T

向量類型。 T 可以是任何基本數值類型。

參數

condition
Vector<T>

用來驅動選取範圍的整數遮罩向量。

left
Vector<T>

第一個來源向量。

right
Vector<T>

第二個來源向量。

傳回

新的向量,其中包含根據遮罩選取的專案。

適用於