Method YNarrowSaturate_Clamp
- Namespace
- Zyl.VectorTraits.Impl.AVector512
- Assembly
- VectorTraits.dll
YNarrowSaturate_Clamp(Vector512<long>, Vector512<long>)
Saturate narrows two Vector512<T> instances into one Vector512<T>" (将两个 Vector512<T> 实例饱和缩窄为一个 Vector512<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue))
.
public static Vector512<int> YNarrowSaturate_Clamp(Vector512<long> lower, Vector512<long> upper)
Parameters
lower
Vector512<long>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upper
Vector512<long>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector512<int>
A Vector512<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also
YNarrowSaturate_Clamp(Vector512<ulong>, Vector512<ulong>)
Saturate narrows two Vector512<T> instances into one Vector512<T>" (将两个 Vector512<T> 实例饱和缩窄为一个 Vector512<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), TOut.MinValue, TOut.MaxValue))
.
[CLSCompliant(false)]
public static Vector512<uint> YNarrowSaturate_Clamp(Vector512<ulong> lower, Vector512<ulong> upper)
Parameters
lower
Vector512<ulong>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upper
Vector512<ulong>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector512<uint>
A Vector512<T> containing elements narrowed from
lower
andupper
(一个包含了来自lower
与upper
缩窄元素的向量).
- See Also