Vector.CopySign<T>(Vector<T>, Vector<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將一個向量的每個元素符號複製到另一個向量的每個元素符號。
public:
generic <typename T>
static System::Numerics::Vector<T> CopySign(System::Numerics::Vector<T> value, System::Numerics::Vector<T> sign);
public static System.Numerics.Vector<T> CopySign<T>(System.Numerics.Vector<T> value, System.Numerics.Vector<T> sign);
static member CopySign : System.Numerics.Vector<'T> * System.Numerics.Vector<'T> -> System.Numerics.Vector<'T>
Public Function CopySign(Of T) (value As Vector(Of T), sign As Vector(Of T)) As Vector(Of T)
類型參數
- T
向量中專案的型別。
參數
- value
- Vector<T>
結果中使用其大小的向量。
- sign
- Vector<T>
結果中使用符號的向量。
傳回
一個大小為 、 value 符號為 sign的向量。