Tensor<T>.LogInPlace Method

Definition

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

Overload List

LogInPlace(Tensor<Boolean>) Computes the logarithm of the elements of a tensor in place.
LogInPlace(T, Tensor<Boolean>) Computes the logarithm of the elements of a tensor to base a scalar. in-place.
LogInPlace(Tensor<T>, Tensor<Boolean>) Computes the logarithm of the elements of a tensor in the base specified by another tensor in place.

LogInPlace(Tensor<Boolean>)

Computes the logarithm of the elements of a tensor in place.
C#
public Tensor<T> LogInPlace(
	Tensor<bool>? mask = null
)

Parameters

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 their logarithm.

LogInPlace(T, Tensor<Boolean>)

Computes the logarithm of the elements of a tensor to base a scalar. in-place.
C#
public Tensor<T> LogInPlace(
	T other,
	Tensor<bool>? mask = null
)

Parameters

other  T
A scalar 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.

Return Value

Tensor<T>
This tensor with each element replaced with the logarithm of the element and other.

LogInPlace(Tensor<T>, Tensor<Boolean>)

Computes the logarithm of the elements of a tensor in the base specified by another tensor in place.
C#
public Tensor<T> LogInPlace(
	Tensor<T> other,
	Tensor<bool>? mask = null
)

Parameters

other  Tensor<T>
A tensor whose elements serve as the second 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 logarithm 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.

See Also