Sprache

Tensor.UnaryNegation(Tensor<TScalar>) Operator

Definition

Führt elementweise unäre Negation für einen Tensor aus.

public:
 static System::Numerics::Tensors::Tensor<TScalar> ^ operator -(System::Numerics::Tensors::Tensor<TScalar> ^ tensor);
extension<TScalar>(System.Numerics.Tensors.Tensor<TScalar>) where TScalar : IUnaryNegationOperators<TScalar,TScalar>
{
    public static System.Numerics.Tensors.Tensor<TScalar> operator -(System.Numerics.Tensors.Tensor<TScalar> tensor);
}
static member ( ~- ) : System.Numerics.Tensors.Tensor<'TScalar (requires 'TScalar :> System.Numerics.IUnaryNegationOperators<'TScalar, 'TScalar>)> -> System.Numerics.Tensors.Tensor<'TScalar (requires 'TScalar :> System.Numerics.IUnaryNegationOperators<'TScalar, 'TScalar>)>
Public Shared Operator - (tensor As Tensor(Of TScalar)) As Tensor(Of TScalar)

Parameter

tensor
Tensor<TScalar>

Der Tensor, der negiert werden soll.

Gibt zurück

Tensor<TScalar>

Ein neuer Tensor, der das Ergebnis von -tensorenthält.

Gilt für: