Table of Contents

Method YShuffleInsert_Args

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YShuffleInsert_Args<TIdx>(IVectorTraits, Vector<TIdx>, out Vector<TIdx>, out Vector<TIdx>, out Vector<TIdx>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
[CLSCompliant(false)]
public static void YShuffleInsert_Args<TIdx>(this IVectorTraits athis, Vector<TIdx> indices, out Vector<TIdx> args0, out Vector<TIdx> args1, out Vector<TIdx> args2) where TIdx : struct

Parameters

athis IVectorTraits
indices Vector<TIdx>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

args0 Vector<TIdx>

Arguments 0 (参数0). Used for YShuffleInsert_Core .

args1 Vector<TIdx>

Arguments 1 (参数1). Used for YShuffleInsert_Core .

args2 Vector<TIdx>

Arguments 2 (参数2). Used for YShuffleInsert_Core .

Type Parameters

TIdx

The element type of the indices parameter (索引参数的元素类型).

Exceptions

NotSupportedException

These element types(TIdx) are not supported.

See Also

YShuffleInsert_Args<TIdx>(IVectorTraits, Vector<TIdx>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
[CLSCompliant(false)]
public static (Vector<TIdx> args0, Vector<TIdx> args1, Vector<TIdx> args2) YShuffleInsert_Args<TIdx>(this IVectorTraits athis, Vector<TIdx> indices) where TIdx : struct

Parameters

athis IVectorTraits
indices Vector<TIdx>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<TIdx> args0, Vector<TIdx> args1, Vector<TIdx> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

Type Parameters

TIdx

The element type of the indices parameter (索引参数的元素类型).

Exceptions

NotSupportedException

These element types(TIdx) are not supported.

See Also
YShuffleInsert_Args<TIdx>(Vector<TIdx>, out Vector<TIdx>, out Vector<TIdx>, out Vector<TIdx>)

YShuffleInsert_Args(IVectorTraits, Vector<sbyte>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[CLSCompliant(false)]
public static (Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2) YShuffleInsert_Args(this IVectorTraits athis, Vector<sbyte> indices)

Parameters

athis IVectorTraits
indices Vector<sbyte>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

See Also

YShuffleInsert_Args(IVectorTraits, Vector<byte>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[CLSCompliant(false)]
public static (Vector<byte> args0, Vector<byte> args1, Vector<byte> args2) YShuffleInsert_Args(this IVectorTraits athis, Vector<byte> indices)

Parameters

athis IVectorTraits
indices Vector<byte>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<byte> args0, Vector<byte> args1, Vector<byte> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

See Also

YShuffleInsert_Args(IVectorTraits, Vector<short>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[CLSCompliant(false)]
public static (Vector<short> args0, Vector<short> args1, Vector<short> args2) YShuffleInsert_Args(this IVectorTraits athis, Vector<short> indices)

Parameters

athis IVectorTraits
indices Vector<short>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<short> args0, Vector<short> args1, Vector<short> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

See Also

YShuffleInsert_Args(IVectorTraits, Vector<ushort>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[CLSCompliant(false)]
public static (Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2) YShuffleInsert_Args(this IVectorTraits athis, Vector<ushort> indices)

Parameters

athis IVectorTraits
indices Vector<ushort>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

See Also

YShuffleInsert_Args(IVectorTraits, Vector<int>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[CLSCompliant(false)]
public static (Vector<int> args0, Vector<int> args1, Vector<int> args2) YShuffleInsert_Args(this IVectorTraits athis, Vector<int> indices)

Parameters

athis IVectorTraits
indices Vector<int>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<int> args0, Vector<int> args1, Vector<int> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

See Also

YShuffleInsert_Args(IVectorTraits, Vector<uint>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[CLSCompliant(false)]
public static (Vector<uint> args0, Vector<uint> args1, Vector<uint> args2) YShuffleInsert_Args(this IVectorTraits athis, Vector<uint> indices)

Parameters

athis IVectorTraits
indices Vector<uint>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<uint> args0, Vector<uint> args1, Vector<uint> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

See Also

YShuffleInsert_Args(IVectorTraits, Vector<long>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[CLSCompliant(false)]
public static (Vector<long> args0, Vector<long> args1, Vector<long> args2) YShuffleInsert_Args(this IVectorTraits athis, Vector<long> indices)

Parameters

athis IVectorTraits
indices Vector<long>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<long> args0, Vector<long> args1, Vector<long> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

See Also

YShuffleInsert_Args(IVectorTraits, Vector<ulong>)

Arguments calculation for shuffle and insert (换位并插入的参数计算). Provide arguments for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数). If the index value is out of range, the elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i].

[CLSCompliant(false)]
public static (Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2) YShuffleInsert_Args(this IVectorTraits athis, Vector<ulong> indices)

Parameters

athis IVectorTraits
indices Vector<ulong>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

(Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2)

The arguments provided for YShuffleInsert_Core (为 YShuffleInsert_Core 提供参数).

See Also