Tensor<T>.Subtraction Operator
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Overload List
Subtraction( | Subtracts a tensor from a tensor. |
Subtraction( | Subtracts a scalar from a scalar. |
Subtraction( | Subtracts one tensor from another. |
Subtraction(T, Tensor<T>) Operator
Subtracts a tensor from a tensor.
public static Tensor<T> operator -(
T left,
Tensor<T> right
)
Parameters
- left T
- A scalar that serves as the left operand.
- right Tensor<T>
- A tensor that serves as the right operand.
Return Value
Tensor<T>A tensor of the same shape as right whose elements are equal to the difference of left and the corresponding elements of right.
Exceptions
Argument | right is null. |
Subtraction(Tensor<T>, T) Operator
Subtracts a scalar from a scalar.
public static Tensor<T> operator -(
Tensor<T> left,
T right
)
Parameters
- left Tensor<T>
- A tensor that serves as the left operand.
- right T
- A scalar that serves as the right operand.
Return Value
Tensor<T>A tensor of the same shape as left whose elements are equal to the difference of the corresponding elements of left and right.
Exceptions
Argument | left is null. |
Subtraction(Tensor<T>, Tensor<T>) Operator
Subtracts one tensor from another.
public static Tensor<T> operator -(
Tensor<T> left,
Tensor<T> right
)
Parameters
- left Tensor<T>
- A tensor that serves as the left operand.
- right Tensor<T>
- A tensor that serves as the right operand.
Return Value
Tensor<T>A tensor of the same shape as left and right whose elements are equal to the difference of the corresponding elements of left and right.
Exceptions
Argument | left is null. -or- right is null. |