Method ExToVector512
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
ExToVector512<T>(Vector256<T>)
Converts the given vector to a new Vector512<T> with the lower 256-bits set to the value of the given vector and the upper 256-bits initialized to zero (将给定向量转换为新 Vector512<T> 向量,其中较低的 256 位设置为给定向量的值,并将高 256 位初始化为零).
public static Vector512<T> ExToVector512<T>(this Vector256<T> vector) where T : struct
Parameters
vector
Vector256<T>The vector to extend (要扩展的向量).
Returns
- Vector512<T>
A new Vector512<T> with the lower 256-bits set to the value of
vector
and the upper 256-bits initialized to zero (一个新的 Vector512<T>, 将较低的 256 位设置为vector
的值, 而高 256 位初始化为零).
Type Parameters
T
The type of the input vector element (输入向量元素的类型).