Method ExWithUpper
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
ExWithUpper<T>(Vector256<T>, Vector128<T>)
Creates a new Vector256<T> with the upper 128-bits set to the specified value and the lower 128-bits set to the same value as that in the given vector (创建一个新的 Vector256<T>,将高 128 位设置为指定值,并将低 128 位设置为与给定向量中的值相同的值).
public static Vector256<T> ExWithUpper<T>(this Vector256<T> vector, Vector128<T> value) where T : struct
Parameters
vector
Vector256<T>The vector to get the lower 128-bits from (要从中获取低 128 位的向量).
value
Vector128<T>The value of the upper 128-bits (高 128 位).
Returns
- Vector256<T>
A new Vector256<T> with the upper 128-bits set to
value
and the lower 128-bits set to the same value as that invector
(一个新向量,将高 128 位设置为指定值,并将低 128 位设置为与vector
中的值相同的值).
Type Parameters
T
The type of the input vector element (输入向量元素的类型).