Method YNarrowSaturateUnsigned
- Namespace
- Zyl.VectorTraits.Impl.AVector
- Assembly
- VectorTraits.dll
YNarrowSaturateUnsigned(Vector<short>, Vector<short>)
Saturate narrows two signed Vector<T> instances into one unsigned Vector<T>" (将两个有符号 Vector<T> 实例饱和缩窄为一个无符号 Vector<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), 0, TOut.MaxValue)).
public virtual Vector<byte> YNarrowSaturateUnsigned(Vector<short> lower, Vector<short> upper)
Parameters
lowerVector<short>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upperVector<short>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector<byte>
A Vector<T> containing elements narrowed from
lowerandupper(一个包含了来自lower与upper缩窄元素的向量).
- See Also
YNarrowSaturateUnsigned(Vector<int>, Vector<int>)
Saturate narrows two signed Vector<T> instances into one unsigned Vector<T>" (将两个有符号 Vector<T> 实例饱和缩窄为一个无符号 Vector<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), 0, TOut.MaxValue)).
[CLSCompliant(false)]
public virtual Vector<ushort> YNarrowSaturateUnsigned(Vector<int> lower, Vector<int> upper)
Parameters
lowerVector<int>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upperVector<int>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector<ushort>
A Vector<T> containing elements narrowed from
lowerandupper(一个包含了来自lower与upper缩窄元素的向量).
- See Also
YNarrowSaturateUnsigned(Vector<long>, Vector<long>)
Saturate narrows two signed Vector<T> instances into one unsigned Vector<T>" (将两个有符号 Vector<T> 实例饱和缩窄为一个无符号 Vector<T> ). />.
Mnemonic: rt[i] := narrow_saturate(element_ref(i, lower, upper)) = narrow(clamp(element_ref(i, lower, upper), 0, TOut.MaxValue)).
[CLSCompliant(false)]
public virtual Vector<uint> YNarrowSaturateUnsigned(Vector<long> lower, Vector<long> upper)
Parameters
lowerVector<long>The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).
upperVector<long>The vector that will be narrowed to the upper half of the result vector (构成缩窄结果向量的高半部分向量).
Returns
- Vector<uint>
A Vector<T> containing elements narrowed from
lowerandupper(一个包含了来自lower与upper缩窄元素的向量).
- See Also