Method AsVector
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
AsVector<T>(Vector128<T>)
Reinterprets a Vector128<T> as a new Vector<T> (将 Vector128<T> 重新解释为新的 Vector<T>). It supports ExType, so there is no element type check (它支持 ExType, 故没有元素类型检查).
public static Vector<T> AsVector<T>(Vector128<T> value) where T : struct
Parameters
value
Vector128<T>The vector to reinterpret (要重新解释的向量).
Returns
Type Parameters
T
The vector element type (向量中的元素的类型).
- See Also
AsVector<T>(Vector256<T>)
Reinterprets a Vector256<T> as a new Vector<T> (将 Vector256<T> 重新解释为新的 Vector<T>). It supports ExType, so there is no element type check (它支持 ExType, 故没有元素类型检查).
public static Vector<T> AsVector<T>(Vector256<T> value) where T : struct
Parameters
value
Vector256<T>The vector to reinterpret (要重新解释的向量).
Returns
Type Parameters
T
The vector element type (向量中的元素的类型).
- See Also
AsVector<T>(Vector512<T>)
Reinterprets a Vector512<T> as a new Vector<T> (将 Vector512<T> 重新解释为新的 Vector<T>). It supports ExType, so there is no element type check (它支持 ExType, 故没有元素类型检查).
public static Vector<T> AsVector<T>(Vector512<T> value) where T : struct
Parameters
value
Vector512<T>The vector to reinterpret (要重新解释的向量).
Returns
Type Parameters
T
The vector element type (向量中的元素的类型).
- See Also