Tensor<T>.MultiplySumInPlace 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#
public Tensor<T> MultiplySumInPlace(
	Tensor<T> left,
	Tensor<T> right,
	Tensor<bool>? mask = null
)

Parameters

left  Tensor<T>
A tensor whose elements serve as the second operand.
right  Tensor<T>
A tensor whose elements serve as the third 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.

Return Value

Tensor<T>
This tensor with the elements replaced with the result of the element and the corresponding elements of left and right.

Exceptions

ArgumentNullException

left is null.

-or-

right is null.

See Also