Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


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.

C#
public static System.Numerics.Vector<float> ConditionalSelect(System.Numerics.Vector<int> condition, System.Numerics.Vector<float> left, System.Numerics.Vector<float> right);

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.

Remarks

The returned vector is equivalent to condition?left:right on a per-bit basis.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

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.

C#
public static System.Numerics.Vector<double> ConditionalSelect(System.Numerics.Vector<long> condition, System.Numerics.Vector<double> left, System.Numerics.Vector<double> right);

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.

Remarks

The returned vector is equivalent to condition?left:right on a per-bit basis.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

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.

C#
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;
C#
public static System.Numerics.Vector<T> ConditionalSelect<T>(System.Numerics.Vector<T> condition, System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);

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.

Remarks

The returned vector is equivalent to condition?left:right on a per-bit basis.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0