语言

Vector512.WithUpper<T>(Vector512<T>, Vector256<T>) 方法

定义

创建一个新 Vector512<T> 值,将高 256 位设置为指定值,将较低的 256 位设置为与给定向量中的值相同的值。

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)

类型参数

T

输入向量的类型。

参数

vector
Vector512<T>

要从中获取较低 256 位的向量。

value
Vector256<T>

以 256 位形式表示 Vector256<T>的上限 256 位的值。

返回

Vector512<T>将高 256 位设置为value的新值,将较低的 256 位设置为与其中vector相同的值。

例外

不支持 > 的类型。

适用于