Table of Contents

Method YGroup2UnzipOdd

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup2UnzipOdd<T>(IVectorTraits, Vector<T>, Vector<T>)

De-Interleave the 2-element groups into 2 vectors, and return the vector of odd positions (将2-元素组解交织为2个向量, 并返回奇数位置的数据). Mnemonic: rt[i] =: element_ref(2*i+1, data0, data1).

[CLSCompliant(false)]
[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 (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
public static Vector<T> YGroup2UnzipOdd<T>(this IVectorTraits athis, Vector<T> data0, Vector<T> data1) where T : struct

Parameters

athis IVectorTraits
data0 Vector<T>

A vector made of 2-element groups - Part 0 (由2元素组所组成的向量 - 第0部分).

data1 Vector<T>

A vector made of 2-element groups - Part 1 (由2元素组所组成的向量 - 第1部分).

Returns

Vector<T>

Returns the vector made of the Y-components (返回Y分量所组成的向量).

Type Parameters

T
See Also

YGroup2UnzipOdd(IVectorTraits, Vector<Int128>, Vector<Int128>)

De-Interleave the 2-element groups into 2 vectors, and return the vector of odd positions (将2-元素组解交织为2个向量, 并返回奇数位置的数据). Mnemonic: rt[i] =: element_ref(2*i+1, data0, data1).

[CLSCompliant(false)]
public static Vector<Int128> YGroup2UnzipOdd(this IVectorTraits athis, Vector<Int128> data0, Vector<Int128> data1)

Parameters

athis IVectorTraits
data0 Vector<Int128>

A vector made of 2-element groups - Part 0 (由2元素组所组成的向量 - 第0部分).

data1 Vector<Int128>

A vector made of 2-element groups - Part 1 (由2元素组所组成的向量 - 第1部分).

Returns

Vector<Int128>

Returns the vector made of the Y-components (返回Y分量所组成的向量).

See Also

YGroup2UnzipOdd(IVectorTraits, Vector<UInt128>, Vector<UInt128>)

De-Interleave the 2-element groups into 2 vectors, and return the vector of odd positions (将2-元素组解交织为2个向量, 并返回奇数位置的数据). Mnemonic: rt[i] =: element_ref(2*i+1, data0, data1).

[CLSCompliant(false)]
public static Vector<UInt128> YGroup2UnzipOdd(this IVectorTraits athis, Vector<UInt128> data0, Vector<UInt128> data1)

Parameters

athis IVectorTraits
data0 Vector<UInt128>

A vector made of 2-element groups - Part 0 (由2元素组所组成的向量 - 第0部分).

data1 Vector<UInt128>

A vector made of 2-element groups - Part 1 (由2元素组所组成的向量 - 第1部分).

Returns

Vector<UInt128>

Returns the vector made of the Y-components (返回Y分量所组成的向量).

See Also