Bewerken

Delen via


Vector512.ConditionalSelect<T> Method

Definition

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

public:
generic <typename T>
 static System::Runtime::Intrinsics::Vector512<T> ConditionalSelect(System::Runtime::Intrinsics::Vector512<T> condition, System::Runtime::Intrinsics::Vector512<T> left, System::Runtime::Intrinsics::Vector512<T> right);
public static System.Runtime.Intrinsics.Vector512<T> ConditionalSelect<T> (System.Runtime.Intrinsics.Vector512<T> condition, System.Runtime.Intrinsics.Vector512<T> left, System.Runtime.Intrinsics.Vector512<T> right);
static member ConditionalSelect : System.Runtime.Intrinsics.Vector512<'T> * System.Runtime.Intrinsics.Vector512<'T> * System.Runtime.Intrinsics.Vector512<'T> -> System.Runtime.Intrinsics.Vector512<'T>
Public Function ConditionalSelect(Of T) (condition As Vector512(Of T), left As Vector512(Of T), right As Vector512(Of T)) As Vector512(Of T)

Type Parameters

T

The type of the elements in the vector.

Parameters

condition
Vector512<T>

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

left
Vector512<T>

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

right
Vector512<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