Tensor<T>.Clamp In Place Method
Computes the values of a tensor clamped by the corresponding values of two other tensors 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 clamped value of the element and the corresponding elements of left and right.
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
public Tensor<T> ClampInPlace(
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 clamped value of the element and the corresponding elements of left and right.
Exceptions
Argument | left is null. -or- right is null. |