Tensor.Log Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Log<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Computes the element-wise logarithm of the numbers in a specified tensor to the specified base in another specified tensor. |
Log<T>(ReadOnlyTensorSpan<T>) |
Takes the natural logarithm of each element of the ReadOnlyTensorSpan<T> and returns a new Tensor<T> with the result. |
Log<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>) |
Computes the element-wise logarithm of the numbers in a specified tensor to the specified base in another specified tensor. |
Log<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Takes the natural logarithm of each element of the ReadOnlyTensorSpan<T> and returns a new TensorSpan<T> with the result. |
Log<T>(ReadOnlyTensorSpan<T>, T) |
Computes the element-wise logarithm of the numbers in a specified tensor to the specified base in another specified tensor. |
Log<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<T>) |
Computes the element-wise logarithm of the numbers in a specified tensor to the specified base in another specified tensor. |
Log<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Computes the element-wise logarithm of the numbers in a specified tensor to the specified base in another specified tensor.
public:
generic <typename T>
where T : System::Numerics::ILogarithmicFunctions<T> static System::Numerics::Tensors::TensorSpan<T> ^ Log(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T>;
static member Log : ReadOnlyTensorSpan * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)
Public Function Log(Of T As ILogarithmicFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)
Type Parameters
- T
Parameters
The first tensor
The second tensor
- destination
- TensorSpan<T>
The destination tensor, represented as a span.
Returns
Applies to
Log<T>(ReadOnlyTensorSpan<T>)
- Source:
- TensorExtensions.cs
Takes the natural logarithm of each element of the ReadOnlyTensorSpan<T> and returns a new Tensor<T> with the result.
public:
generic <typename T>
where T : System::Numerics::ILogarithmicFunctions<T> static System::Numerics::Tensors::Tensor<T> ^ Log(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x);
public static System.Numerics.Tensors.Tensor<T> Log<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ILogarithmicFunctions<T>;
static member Log : ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)> (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)
Public Function Log(Of T As ILogarithmicFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)
Type Parameters
- T
Parameters
The ReadOnlyTensorSpan<T> to take the natural logarithm of.
Returns
Applies to
Log<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)
- Source:
- TensorExtensions.cs
Computes the element-wise logarithm of the numbers in a specified tensor to the specified base in another specified tensor.
public:
generic <typename T>
where T : System::Numerics::ILogarithmicFunctions<T> static System::Numerics::Tensors::Tensor<T> ^ Log(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y);
public static System.Numerics.Tensors.Tensor<T> Log<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.ILogarithmicFunctions<T>;
static member Log : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)> (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)
Public Function Log(Of T As ILogarithmicFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)
Type Parameters
- T
Parameters
The first tensor
The second tensor
Returns
Applies to
Log<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Takes the natural logarithm of each element of the ReadOnlyTensorSpan<T> and returns a new TensorSpan<T> with the result.
public:
generic <typename T>
where T : System::Numerics::ILogarithmicFunctions<T> static System::Numerics::Tensors::TensorSpan<T> ^ Log(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T>;
static member Log : ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)
Public Function Log(Of T As ILogarithmicFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)
Type Parameters
- T
Parameters
The ReadOnlyTensorSpan<T> to take the natural logarithm of.
- destination
- TensorSpan<T>
Returns
Applies to
Log<T>(ReadOnlyTensorSpan<T>, T)
- Source:
- TensorExtensions.cs
Computes the element-wise logarithm of the numbers in a specified tensor to the specified base in another specified tensor.
public:
generic <typename T>
where T : System::Numerics::ILogarithmicFunctions<T> static System::Numerics::Tensors::Tensor<T> ^ Log(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y);
public static System.Numerics.Tensors.Tensor<T> Log<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.ILogarithmicFunctions<T>;
static member Log : ReadOnlyTensorSpan * 'T -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)> (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)
Public Function Log(Of T As ILogarithmicFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), y As T) As Tensor(Of T)
Type Parameters
- T
Parameters
The first tensor
- y
- T
The second tensor
Returns
Applies to
Log<T>(ReadOnlyTensorSpan<T>, T, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Computes the element-wise logarithm of the numbers in a specified tensor to the specified base in another specified tensor.
public:
generic <typename T>
where T : System::Numerics::ILogarithmicFunctions<T> static System::Numerics::Tensors::TensorSpan<T> ^ Log(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T>;
static member Log : ReadOnlyTensorSpan * 'T * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.ILogarithmicFunctions<'T>)
Public Function Log(Of T As ILogarithmicFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), y As T, ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)
Type Parameters
- T
Parameters
The first tensor
- y
- T
The second tensor
- destination
- TensorSpan<T>
The destination tensor, represented as a span.