Vector256.WithUpper<T>(Vector256<T>, Vector128<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新版本 Vector256<T> ,將上方 128 位元設為指定值,下 128 位元設為與給定向量相同的值。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Runtime::Intrinsics::Vector256<T> WithUpper(System::Runtime::Intrinsics::Vector256<T> vector, System::Runtime::Intrinsics::Vector128<T> value);
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static System::Runtime::Intrinsics::Vector256<T> WithUpper(System::Runtime::Intrinsics::Vector256<T> vector, System::Runtime::Intrinsics::Vector128<T> value);
public static System.Runtime.Intrinsics.Vector256<T> WithUpper<T>(this System.Runtime.Intrinsics.Vector256<T> vector, System.Runtime.Intrinsics.Vector128<T> value);
public static System.Runtime.Intrinsics.Vector256<T> WithUpper<T>(this System.Runtime.Intrinsics.Vector256<T> vector, System.Runtime.Intrinsics.Vector128<T> value) where T : struct;
static member WithUpper : System.Runtime.Intrinsics.Vector256<'T> * System.Runtime.Intrinsics.Vector128<'T> -> System.Runtime.Intrinsics.Vector256<'T>
static member WithUpper : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> -> System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function WithUpper(Of T) (vector As Vector256(Of T), value As Vector128(Of T)) As Vector256(Of T)
<Extension()>
Public Function WithUpper(Of T As Structure) (vector As Vector256(Of T), value As Vector128(Of T)) As Vector256(Of T)
類型參數
- T
輸入向量的類型。
參數
- vector
- Vector256<T>
取出下方128位元的向量。
- value
- Vector128<T>
上面的128位元。
傳回
一個新的向量,上面的128位元設為指定值,下128位元設為與中 vector相同的值。
例外狀況
不支援()的vectorT類型。