Vector128.ConditionalSelect<T> Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Conditionally selects a value from two vectors on a bitwise basis.
public:
generic <typename T>
where T : value class static System::Runtime::Intrinsics::Vector128<T> ConditionalSelect(System::Runtime::Intrinsics::Vector128<T> condition, System::Runtime::Intrinsics::Vector128<T> left, System::Runtime::Intrinsics::Vector128<T> right);
public:
generic <typename T>
static System::Runtime::Intrinsics::Vector128<T> ConditionalSelect(System::Runtime::Intrinsics::Vector128<T> condition, System::Runtime::Intrinsics::Vector128<T> left, System::Runtime::Intrinsics::Vector128<T> right);
public static System.Runtime.Intrinsics.Vector128<T> ConditionalSelect<T> (System.Runtime.Intrinsics.Vector128<T> condition, System.Runtime.Intrinsics.Vector128<T> left, System.Runtime.Intrinsics.Vector128<T> right) where T : struct;
public static System.Runtime.Intrinsics.Vector128<T> ConditionalSelect<T> (System.Runtime.Intrinsics.Vector128<T> condition, System.Runtime.Intrinsics.Vector128<T> left, System.Runtime.Intrinsics.Vector128<T> right);
static member ConditionalSelect : System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> * System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> * System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> -> System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> (requires 'T : struct)
static member ConditionalSelect : System.Runtime.Intrinsics.Vector128<'T> * System.Runtime.Intrinsics.Vector128<'T> * System.Runtime.Intrinsics.Vector128<'T> -> System.Runtime.Intrinsics.Vector128<'T>
Public Function ConditionalSelect(Of T As Structure) (condition As Vector128(Of T), left As Vector128(Of T), right As Vector128(Of T)) As Vector128(Of T)
Public Function ConditionalSelect(Of T) (condition As Vector128(Of T), left As Vector128(Of T), right As Vector128(Of T)) As Vector128(Of T)
- T
The type of the elements in the vector.
- condition
- Vector128<T>
The mask that is used to select a value from left
or right
.
- left
- Vector128<T>
The vector that is selected when the corresponding bit in condition
is one.
- right
- Vector128<T>
The vector that is selected when the corresponding bit in condition
is zero.
A vector whose bits come from left
or right
based on the value of condition
.
The type of condition
, left
, and right
(T
) is not supported.
Product | Versions |
---|---|
.NET | 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: