Tensor Back End.Multiply Sum In Place<T> Method
Adds two tensors and multiplies the result elementwise by a third in place.
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
C#
This tensor with the elements replaced with the result of the element and the corresponding element of right.
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
public virtual Tensor<T> MultiplySumInPlace<T>(
Tensor<T> first,
Tensor<T> left,
Tensor<T> right,
Tensor<bool>? mask = null
)
Parameters
- first Tensor<T>
- A tensor that serves as the first operand..
- left Tensor<T>
- A tensor that serves as the left operand..
- right Tensor<T>
- A tensor that serves as the right operand..
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies whether the operation should be performed at the location. If omitted, the operation is performed everywhere.
Type Parameters
- T
- The type of the elements of the tensors.
Return Value
Tensor<T>This tensor with the elements replaced with the result of the element and the corresponding element of right.
Exceptions
Argument | first is null. -or- left is null. -or- right is null. |
Dimension | The dimensions of left and right are not compatible. |