Tensor<T>.SubtractionAssignment Operator

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 10.0.0

Overload List

SubtractionAssignment(T) Subtracts a scalar from a scalar in-place.
SubtractionAssignment(Tensor<T>) Subtracts one tensor from another in place.
SubtractionAssignment(Tensor<T>, T) Subtracts a constant from a matrix in place.
SubtractionAssignment(Tensor<T>, Tensor<T>) Subtracts another matrix from a matrix in place.

SubtractionAssignment(T) Operator

Subtracts a scalar from a scalar in-place.
C#
C# does not support this operator.

Parameters

right  T
 

Return Value

This tensor with each element replaced with the difference of the element and other.

SubtractionAssignment(Tensor<T>) Operator

Subtracts one tensor from another in place.
C#
C# does not support this operator.

Parameters

right  Tensor<T>
 

Return Value

This tensor with the elements replaced with the difference of the element and the corresponding element of other.

Exceptions

ArgumentNullException

other is null.

DimensionMismatchException

The dimensions of other are not compatible with the dimensions of this tensor.

SubtractionAssignment(Tensor<T>, T) Operator

Subtracts a constant from a matrix in place.
C#
C# does not support this operator.

Parameters

self  Tensor<T>
A Tensor<T>.
term  T
A real number.

Return Value

Tensor<T>
A reference to self.

SubtractionAssignment(Tensor<T>, Tensor<T>) Operator

Subtracts another matrix from a matrix in place.
C#
C# does not support this operator.

Parameters

self  Tensor<T>
A Tensor<T>.
term  Tensor<T>
The Tensor<T> to subtract from self.

Return Value

Tensor<T>
A reference to self.

See Also