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