Tensor.Log Method
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
Log<T>(Tensor<T>, Tensor<T>, Tensor<Boolean>, TensorElementOrder) | Computes the logarithm of the elements of a tensor. |
Log<T>(Tensor<T>, T, Tensor<T>, Tensor<Boolean>, TensorElementOrder) | Computes the logarithm of the elements of a tensor to base a scalar.. |
Log<T>(Tensor<T>, Tensor<T>, Tensor<T>, Tensor<Boolean>, TensorElementOrder) | Computes the logarithm of the elements of a tensor in the base specified by another tensor. |
Log<T>(T, Tensor<T>, Tensor<T>, Tensor<Boolean>, TensorElementOrder) | Computes the logarithm of a scalar to base the elements of a tensor.. |
Log<T>(Tensor<T>, Tensor<T>, Tensor<Boolean>, TensorElementOrder)
Computes the logarithm of the elements of a tensor.
public static Tensor<T> Log<T>(
Tensor<T> value,
Tensor<T>? result = null,
Tensor<bool>? mask = null,
TensorElementOrder order = TensorElementOrder.Automatic
)
Parameters
- value Tensor<T>
- A tensor.
- result Tensor<T> (Optional)
- Optional. The tensor that is to hold the result. May be null.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies for which elements should be included in the operation. If null (the default), the operation is applied everywhere.
- order TensorElementOrder (Optional)
- Optional. If result is null, the desired ordering in memory of the result.
Type Parameters
- T
- The type of the elements of the tensor.
Return Value
Tensor<T>A tensor of the same shape as value whose elements are equal to the logarithm of the corresponding elements of value
Exceptions
Argument | value is null. |
Log<T>(Tensor<T>, T, Tensor<T>, Tensor<Boolean>, TensorElementOrder)
Computes the logarithm of the elements of a tensor to base a scalar..
public static Tensor<T> Log<T>(
Tensor<T> left,
T right,
Tensor<T>? result = null,
Tensor<bool>? mask = null,
TensorElementOrder order = TensorElementOrder.Automatic
)
Parameters
- left Tensor<T>
- A tensor that serves as the left operand.
- right T
- A scalar that serves as the right operand.
- result Tensor<T> (Optional)
- Optional. The tensor that is to hold the result. May be null.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies for which elements the operation should be performed. If null (the default), the operation is applied everywhere.
- order TensorElementOrder (Optional)
- Optional. If result is null, the desired ordering in memory of the result.
Type Parameters
- T
- The type of the elements of the tensor.
Return Value
Tensor<T>A tensor of the same shape as left whose elements are equal to the logarithm of the corresponding elements of left and right.
Exceptions
Argument | left is null. |
Log<T>(Tensor<T>, Tensor<T>, Tensor<T>, Tensor<Boolean>, TensorElementOrder)
Computes the logarithm of the elements of a tensor in the base specified by another tensor.
public static Tensor<T> Log<T>(
Tensor<T> left,
Tensor<T> right,
Tensor<T>? result = null,
Tensor<bool>? mask = null,
TensorElementOrder order = TensorElementOrder.Automatic
)
Parameters
- left Tensor<T>
- A tensor that serves as the left operand..
- right Tensor<T>
- A tensor that serves as the right operand..
- result Tensor<T> (Optional)
- Optional. The tensor that is to hold the result. May be null.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies for which elements should be included in the operation. If null (the default), the operation is applied everywhere.
- order TensorElementOrder (Optional)
- Optional. If result is null, the desired ordering in memory of the result.
Type Parameters
- T
- The type of the elements of the tensors.
Return Value
Tensor<T>A tensor of the same shape as left and right whose elements are equal to the logarithm of the corresponding elements of left and right
Exceptions
Argument | left is null. -or- right is null. |
Log<T>(T, Tensor<T>, Tensor<T>, Tensor<Boolean>, TensorElementOrder)
Computes the logarithm of a scalar to base the elements of a tensor..
public static Tensor<T> Log<T>(
T left,
Tensor<T> right,
Tensor<T>? result = null,
Tensor<bool>? mask = null,
TensorElementOrder order = TensorElementOrder.Automatic
)
Parameters
- left T
- A scalar that serves as the left operand.
- right Tensor<T>
- A tensor that serves as the right operand.
- result Tensor<T> (Optional)
- Optional. The tensor that is to hold the result. May be null.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies for which elements the operation should be performed. If null (the default), the operation is applied everywhere.
- order TensorElementOrder (Optional)
- Optional. If result is null, the desired ordering in memory of the result.
Type Parameters
- T
- The type of the elements of the tensor.
Return Value
Tensor<T>A tensor of the same shape as right whose elements are equal to the logarithm of left and the corresponding elements of right.
Exceptions
Argument | right is null. |