Uredi

Deli z drugimi prek


Vector.ConditionalSelect Method

Definition

Overloads

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

Creates a new single-precision vector with elements selected between two specified single-precision source vectors based on an integral mask vector.

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

Creates a new double-precision vector with elements selected between two specified double-precision source vectors based on an integral mask vector.

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

Creates a new vector of a specified type with elements selected between two specified source vectors of the same type based on an integral mask vector.

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

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Creates a new single-precision vector with elements selected between two specified single-precision source vectors based on an integral mask vector.

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)

Parameters

condition
Vector<Int32>

The integral mask vector used to drive selection.

left
Vector<Single>

The first source vector.

right
Vector<Single>

The second source vector.

Returns

The new vector with elements selected based on the mask.

Applies to

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

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Creates a new double-precision vector with elements selected between two specified double-precision source vectors based on an integral mask vector.

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)

Parameters

condition
Vector<Int64>

The integral mask vector used to drive selection.

left
Vector<Double>

The first source vector.

right
Vector<Double>

The second source vector.

Returns

The new vector with elements selected based on the mask.

Applies to

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

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Creates a new vector of a specified type with elements selected between two specified source vectors of the same type based on an integral mask vector.

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)

Type Parameters

T

The vector type. T can be any primitive numeric type.

Parameters

condition
Vector<T>

The integral mask vector used to drive selection.

left
Vector<T>

The first source vector.

right
Vector<T>

The second source vector.

Returns

The new vector with elements selected based on the mask.

Applies to