Method ConditionalSelect_Relaxed
- Namespace
- Zyl.VectorTraits.Impl.AVector256
- Assembly
- VectorTraits.dll
ConditionalSelect_Relaxed<T>(Vector256<T>, Vector256<T>, Vector256<T>)
Conditionally selects a value from two vectors on a bitwise basis (按条件从两个向量中按位选择值).
Mnemonic: rt[i] := (left[i] & condition[i]) | (right[i] & ~condition[i]).
public static Vector256<T> ConditionalSelect_Relaxed<T>(Vector256<T> condition, Vector256<T> left, Vector256<T> right) where T : struct
Parameters
conditionVector256<T>The mask that is used to select a value from
leftorright(用于从left或right中选择值的掩码).leftVector256<T>The vector that is selected when the corresponding bit in
conditionis one (当condition中的对应位为 1 时选择的向量).rightVector256<T>The vector that is selected when the corresponding bit in
conditionis zero (当condition中的对应位为 0 时选择的向量).
Returns
- Vector256<T>
A vector whose bits come from
leftorrightbased on the value ofcondition(一个向量,其二进制位是根据condition由leftorright组合而成).
Type Parameters
TThe vector element type (向量中的元素的类型).
- See Also