Method ExToScalar
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
ExToScalar<T>(Vector128<T>)
Converts the given vector to a scalar containing the value of the first element (将给定向量转换为首个元素的值的标量).
public static T ExToScalar<T>(this Vector128<T> vector) where T : struct
Parameters
vector
Vector128<T>The vector to get the first element from.
Returns
- T
A scalar
T
containing the value of the first element.
Type Parameters
T
The type of the input vector element (输入向量元素的类型).