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