Bewerken

Share via


Vector512.WithUpper<T>(Vector512<T>, Vector256<T>) Method

Definition

Creates a new Vector512<T> with the upper 256-bits set to the specified value and the lower 256-bits set to the same value as that in the given vector.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector512<T> WithUpper(System::Runtime::Intrinsics::Vector512<T> vector, System::Runtime::Intrinsics::Vector256<T> value);
public static System.Runtime.Intrinsics.Vector512<T> WithUpper<T> (this System.Runtime.Intrinsics.Vector512<T> vector, System.Runtime.Intrinsics.Vector256<T> value);
static member WithUpper : System.Runtime.Intrinsics.Vector512<'T> * System.Runtime.Intrinsics.Vector256<'T> -> System.Runtime.Intrinsics.Vector512<'T>
<Extension()>
Public Function WithUpper(Of T) (vector As Vector512(Of T), value As Vector256(Of T)) As Vector512(Of T)

Type Parameters

T

The type of the input vector.

Parameters

vector
Vector512<T>

The vector to get the lower 256-bits from.

value
Vector256<T>

The value of the upper 256-bits as a Vector256<T>.

Returns

A new Vector512<T> with the upper 256-bits set to value and the lower 256-bits set to the same value as that in vector.

Exceptions

The type of vector (T) is not supported.

Applies to