Vector<T>.UnaryNegation(Vector<T>) Operátor

Definice

Neguje daný vektor.

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)

Parametry

value
Vector<T>

Vektor, který se má negovat.

Návraty

Negovaný vektor.

Výjimky

.NET 5 a novější: Typ T se nepodporuje.

Poznámky

Metoda UnaryNegation definuje unární operaci negace pro Vector<T> objekty.

Platí pro