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>

适用于