Vector<T>.UnaryNegation(Vector<T>) 運算子

定義

否定指定向量。

public:
 static System::Numerics::Vector<T> operator -(System::Numerics::Vector<T> value);
public static System.Numerics.Vector<T> operator - (System.Numerics.Vector<T> value);
static member ( ~- ) : System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
static member ( ~- ) : System.Numerics.Vector<'T> -> System.Numerics.Vector<'T>
Public Shared Operator - (value As Vector(Of T)) As Vector(Of T)

參數

value
Vector<T>

要變換正負號的向量。

傳回

已否定的向量。

例外狀況

.NET 5 和更新版本:不支持類型 T

備註

方法 UnaryNegation 會定義 物件的一元負運算 Vector<T>

適用於