Vector128.As<T,U>(Vector128<T>) Method

Definition

Reinterprets a Vector128<T> of type TFrom as a new Vector128<T> of type TTo.

C#
public static System.Runtime.Intrinsics.Vector128<U> As<T,U>(this System.Runtime.Intrinsics.Vector128<T> vector) where T : struct where U : struct;
C#
public static System.Runtime.Intrinsics.Vector128<TTo> As<TFrom,TTo>(this System.Runtime.Intrinsics.Vector128<TFrom> vector) where TFrom : struct where TTo : struct;
C#
public static System.Runtime.Intrinsics.Vector128<TTo> As<TFrom,TTo>(this System.Runtime.Intrinsics.Vector128<TFrom> vector);

Type Parameters

T TFrom

The type of the input vector.

The type of the input vector.

U TTo

The type that the vector vector should be reinterpreted as.

The type that the vector vector should be reinterpreted as.

Parameters

vector
Vector128<T>

The vector to reinterpret.

Returns

Vector128<TTo>

vector reinterpreted as a Vector128<T> of type TTo.

Exceptions

The type of vector (TFrom) or the type of the target (TTo) is not supported.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9