Vector<T>.UnaryNegation(Vector<T>) Operator

Definition

Negates en given 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)

Parametrar

value
Vector<T>

Vektorn som ska negera.

Returer

Den negerade vektorn.

Undantag

.NET 5 och senare: Skriv T stöds inte.

Kommentarer

Metoden UnaryNegation definierar unary negation-åtgärden för Vector<T> objekt.

Gäller för