Vector512.As<TFrom,TTo>(Vector512<TFrom>) Method

Definition

Reinterprets a Vector512<T> as a new Vector512<T>.

C#
public static System.Runtime.Intrinsics.Vector512<TTo> As<TFrom,TTo>(this System.Runtime.Intrinsics.Vector512<TFrom> vector);

Type Parameters

TFrom

The type of the elements in the input vector.

TTo

The type of the elements in the output vector.

Parameters

vector
Vector512<TFrom>

The vector to reinterpret.

Returns

Vector512<TTo>

vector reinterpreted as a new Vector512<T>.

Exceptions

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

Applies to

Product Versions
.NET 8, 9, 10