共用方式為


Vector.AsVectorInt16<T>(Vector<T>) 方法

定義

將指定向量的位元轉換成 16 位元整數向量的位元。

public:
generic <typename T>
 where T : value class static System::Numerics::Vector<short> AsVectorInt16(System::Numerics::Vector<T> value);
public:
generic <typename T>
 static System::Numerics::Vector<short> AsVectorInt16(System::Numerics::Vector<T> value);
public static System.Numerics.Vector<short> AsVectorInt16<T> (System.Numerics.Vector<T> value) where T : struct;
public static System.Numerics.Vector<short> AsVectorInt16<T> (System.Numerics.Vector<T> value);
static member AsVectorInt16 : System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<int16> (requires 'T : struct)
static member AsVectorInt16 : System.Numerics.Vector<'T> -> System.Numerics.Vector<int16>
Public Shared Function AsVectorInt16(Of T As Structure) (value As Vector(Of T)) As Vector(Of Short)
Public Function AsVectorInt16(Of T As Structure) (value As Vector(Of T)) As Vector(Of Short)
Public Function AsVectorInt16(Of T) (value As Vector(Of T)) As Vector(Of Short)

類型參數

T

向量類型。 T 可以是任何基本數字型別。

參數

value
Vector<T>

來源向量。

傳回

已轉換的向量。

例外狀況

不支援 value (T) 的類型。

適用於