Table of Contents

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 virtual Vector<sbyte> YNarrowSaturate(Vector<short> lower, Vector<short> upper)

Parameters

lower Vector<short>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector<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 lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

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 virtual Vector<byte> YNarrowSaturate(Vector<ushort> lower, Vector<ushort> upper)

Parameters

lower Vector<ushort>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector<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 lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

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 virtual Vector<short> YNarrowSaturate(Vector<int> lower, Vector<int> upper)

Parameters

lower Vector<int>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector<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 lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

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 virtual Vector<ushort> YNarrowSaturate(Vector<uint> lower, Vector<uint> upper)

Parameters

lower Vector<uint>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector<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 lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

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 virtual Vector<int> YNarrowSaturate(Vector<long> lower, Vector<long> upper)

Parameters

lower Vector<long>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector<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 lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

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 virtual Vector<uint> YNarrowSaturate(Vector<ulong> lower, Vector<ulong> upper)

Parameters

lower Vector<ulong>

The vector that will be narrowed to the lower half of the result vector (构成缩窄结果向量的低半部分向量).

upper Vector<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 lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

See Also