Table of Contents

Method ExAsUInt16

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

ExAsUInt16<T>(Vector128<T>)

(ExType) Reinterprets a Vector128<T> as a new Vector128<T> of type ushort (将 Vector128<T> 重新解释为 ushort 类型的新 Vector128<T>).

[CLSCompliant(false)]
public static Vector128<ushort> ExAsUInt16<T>(this Vector128<T> vector) where T : struct

Parameters

vector Vector128<T>

The vector to reinterpret (要重新解释的向量).

Returns

Vector128<ushort>

vector reinterpreted as a new Vector128<T> of type ushort (重新解释为 ushort 类型的 Vector128<T> 向量).

Type Parameters

T

The type of the input vector element (输入向量元素的类型).

See Also
ExAs<TFrom, TTo>(Vector128<TFrom>)