Vector256.ConditionalSelect<T> Method

Definition

Conditionally selects a value from two vectors on a bitwise basis.

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

Type Parameters

T

The type of the elements in the vector.

Parameters

condition
Vector256<T>

The mask that is used to select a value from left or right.

left
Vector256<T>

The vector that is selected when the corresponding bit in condition is one.

right
Vector256<T>

The vector that is selected when the corresponding bit in condition is zero.

Returns

A vector whose bits come from left or right based on the value of condition.

Exceptions

The type of condition, left, and right (T) is not supported.

Applies to