Share via


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>

傳回

新的 , Vector512<T> 其上層 256 位設定為 value ,而下層 256 位則設定為 與 中 vector相同的值。

例外狀況

不支援 vector (T) 的類型。

適用於