Table of Contents

Method ExToVector256Unsafe

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

ExToVector256Unsafe<T>(Vector128<T>)

Converts the given vector to a new Vector256<T> with the lower 128-bits set to the value of the given vector and the upper 128-bits left uninitialized (将给定向量转换为新 Vector256<T> 向量,其中低 128 位设置为给定向量的值,而高 128 位则未初始化).

public static Vector256<T> ExToVector256Unsafe<T>(this Vector128<T> vector) where T : struct

Parameters

vector Vector128<T>

The vector to extend (要扩展的向量).

Returns

Vector256<T>

A new Vector256<T> with the lower 128-bits set to the value of vector and the upper 128-bits left uninitialized (一个新的 Vector256<T>, 将较低的 128 位设置为 vector的值, 而高 128 位保留未初始化).

Type Parameters

T

The type of the input vector element (输入向量元素的类型).