Vector256.AsVector256<T>(Vector<T>) Method

Definition

Reinterprets a Vector<T> as a new Vector256<T>.

public static System.Runtime.Intrinsics.Vector256<T> AsVector256<T> (this System.Numerics.Vector<T> value) where T : struct;
public static System.Runtime.Intrinsics.Vector256<T> AsVector256<T> (this System.Numerics.Vector<T> value);

Type Parameters

T

The type of the vectors.

Parameters

value
Vector<T>

The vector to reinterpret.

Returns

value reinterpreted as a new Vector256<T>.

Exceptions

The type of value (T) is not supported.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9