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>)

Source:
Vector.cs
Source:
Vector.cs
Source:
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>)

Source:
Vector.cs
Source:
Vector.cs
Source:
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>)

Source:
Vector.cs
Source:
Vector.cs
Source:
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>

第二个源向量。

返回

基于掩码选择的元素的新向量。

适用于