Tensor<T>.UnaryNegation Operator

Negates a tensor.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0
C#
public static Tensor<T> operator -(
	Tensor<T> value
)

Parameters

value  Tensor<T>
A tensor.

Return Value

Tensor<T>
A tensor of the same shape as value whose elements are equal to the negation of the corresponding elements of value.

Exceptions

ArgumentNullException

value is null.

See Also