Table of Contents

Method Narrow

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Narrow(Vector<double>, Vector<double>)

Narrows two Vector<T> instances into one Vector<T>" (将两个 Vector<T> 实例缩窄为一个 Vector<T> ). />. Mnemonic: rt[i] := narrow(element_ref(i, lower, upper)).

public static Vector<float> Narrow(Vector<double> lower, Vector<double> upper)

Parameters

lower Vector<double>

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

upper Vector<double>

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

Returns

Vector<float>

A Vector<T> containing elements narrowed from lower and upper (一个包含了来自 lowerupper 缩窄元素的向量).

See Also

Narrow(Vector<short>, Vector<short>)

Narrows two Vector<T> instances into one Vector<T>" (将两个 Vector<T> 实例缩窄为一个 Vector<T> ). />. Mnemonic: rt[i] := narrow(element_ref(i, lower, upper)).

[CLSCompliant(false)]
public static Vector<sbyte> Narrow(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

Narrow(Vector<ushort>, Vector<ushort>)

Narrows two Vector<T> instances into one Vector<T>" (将两个 Vector<T> 实例缩窄为一个 Vector<T> ). />. Mnemonic: rt[i] := narrow(element_ref(i, lower, upper)).

[CLSCompliant(false)]
public static Vector<byte> Narrow(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

Narrow(Vector<int>, Vector<int>)

Narrows two Vector<T> instances into one Vector<T>" (将两个 Vector<T> 实例缩窄为一个 Vector<T> ). />. Mnemonic: rt[i] := narrow(element_ref(i, lower, upper)).

public static Vector<short> Narrow(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

Narrow(Vector<uint>, Vector<uint>)

Narrows two Vector<T> instances into one Vector<T>" (将两个 Vector<T> 实例缩窄为一个 Vector<T> ). />. Mnemonic: rt[i] := narrow(element_ref(i, lower, upper)).

[CLSCompliant(false)]
public static Vector<ushort> Narrow(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

Narrow(Vector<long>, Vector<long>)

Narrows two Vector<T> instances into one Vector<T>" (将两个 Vector<T> 实例缩窄为一个 Vector<T> ). />. Mnemonic: rt[i] := narrow(element_ref(i, lower, upper)).

public static Vector<int> Narrow(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

Narrow(Vector<ulong>, Vector<ulong>)

Narrows two Vector<T> instances into one Vector<T>" (将两个 Vector<T> 实例缩窄为一个 Vector<T> ). />. Mnemonic: rt[i] := narrow(element_ref(i, lower, upper)).

[CLSCompliant(false)]
public static Vector<uint> Narrow(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