Table of Contents

Method YShuffleG2_Basic

Namespace
Zyl.VectorTraits.Impl.AVector
Assembly
VectorTraits.dll

YShuffleG2_Basic(Vector<float>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

public static Vector<float> YShuffleG2_Basic(Vector<float> source, ShuffleControlG2 control)

Parameters

source Vector<float>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<float>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<double>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

public static Vector<double> YShuffleG2_Basic(Vector<double> source, ShuffleControlG2 control)

Parameters

source Vector<double>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<double>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<sbyte>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

[CLSCompliant(false)]
public static Vector<sbyte> YShuffleG2_Basic(Vector<sbyte> source, ShuffleControlG2 control)

Parameters

source Vector<sbyte>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<sbyte>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<byte>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

public static Vector<byte> YShuffleG2_Basic(Vector<byte> source, ShuffleControlG2 control)

Parameters

source Vector<byte>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<byte>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<short>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

public static Vector<short> YShuffleG2_Basic(Vector<short> source, ShuffleControlG2 control)

Parameters

source Vector<short>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<short>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<ushort>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

[CLSCompliant(false)]
public static Vector<ushort> YShuffleG2_Basic(Vector<ushort> source, ShuffleControlG2 control)

Parameters

source Vector<ushort>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<ushort>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<int>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

public static Vector<int> YShuffleG2_Basic(Vector<int> source, ShuffleControlG2 control)

Parameters

source Vector<int>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<int>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<uint>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

[CLSCompliant(false)]
public static Vector<uint> YShuffleG2_Basic(Vector<uint> source, ShuffleControlG2 control)

Parameters

source Vector<uint>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<uint>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<long>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

public static Vector<long> YShuffleG2_Basic(Vector<long> source, ShuffleControlG2 control)

Parameters

source Vector<long>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<long>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also

YShuffleG2_Basic(Vector<ulong>, ShuffleControlG2)

For each 2-element group in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位). Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source). View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)].

[CLSCompliant(false)]
public static Vector<ulong> YShuffleG2_Basic(Vector<ulong> source, ShuffleControlG2 control)

Parameters

source Vector<ulong>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector<ulong>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also