Vector256.ToVector512Unsafe<T>(Vector256<T>) Method

Definition

Converts the given vector to a new Vector512<T> with the lower 256-bits set to the value of the given vector and the upper 256-bits left uninitialized.

C#
public static System.Runtime.Intrinsics.Vector512<T> ToVector512Unsafe<T>(this System.Runtime.Intrinsics.Vector256<T> vector);

Type Parameters

T

The type of the input vector.

Parameters

vector
Vector256<T>

The vector to extend.

Returns

A new Vector512<T> with the lower 256-bits set to the value of vector and the upper 256-bits left uninitialized.

Exceptions

The type of vector (T) is not supported.

Applies to

Product Versions
.NET 8, 9, 10