TensorPrimitives.Exp 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
Exp(ReadOnlySpan<Single>, Span<Single>) |
Computes the element-wise result of raising |
Exp<T>(ReadOnlySpan<T>, Span<T>) |
Computes the element-wise result of raising |
Exp(ReadOnlySpan<Single>, Span<Single>)
- Source:
- TensorPrimitives.cs
- Source:
- TensorPrimitives.Single.cs
- Source:
- TensorPrimitives.Single.cs
Computes the element-wise result of raising e
to the single-precision floating-point number powers in the specified tensor.
public:
static void Exp(ReadOnlySpan<float> x, Span<float> destination);
public static void Exp (ReadOnlySpan<float> x, Span<float> destination);
static member Exp : ReadOnlySpan<single> * Span<single> -> unit
Public Shared Sub Exp (x As ReadOnlySpan(Of Single), destination As Span(Of Single))
Parameters
The tensor, represented as a span.
Exceptions
x
and destination
reference overlapping memory locations and do not begin at the same location.
Remarks
This method effectively computes
.destination
[i] = MathF.Exp(x
[i])
If a value equals NaN or PositiveInfinity, the result stored into the corresponding destination location is set to NaN. If a value equals NegativeInfinity, the result stored into the corresponding destination location is set to 0.
This method may call into the underlying C runtime or employ instructions specific to the current architecture. Exact results may differ between different operating systems or architectures.
Applies to
Exp<T>(ReadOnlySpan<T>, Span<T>)
- Source:
- TensorPrimitives.Exp.cs
- Source:
- TensorPrimitives.Exp.cs
Computes the element-wise result of raising e
to the number powers in the specified tensor.
public:
generic <typename T>
where T : System::Numerics::IExponentialFunctions<T> static void Exp(ReadOnlySpan<T> x, Span<T> destination);
public static void Exp<T> (ReadOnlySpan<T> x, Span<T> destination) where T : System.Numerics.IExponentialFunctions<T>;
static member Exp : ReadOnlySpan<'T (requires 'T :> System.Numerics.IExponentialFunctions<'T>)> * Span<'T (requires 'T :> System.Numerics.IExponentialFunctions<'T>)> -> unit (requires 'T :> System.Numerics.IExponentialFunctions<'T>)
Public Shared Sub Exp(Of T As IExponentialFunctions(Of T)) (x As ReadOnlySpan(Of T), destination As Span(Of T))
Type Parameters
- T
Parameters
The tensor, represented as a span.
- destination
- Span<T>
The destination tensor, represented as a span.
Exceptions
x
and destination
reference overlapping memory locations and do not begin at the same location.
Remarks
This method effectively computes
.destination
[i] = T
.Exp(x
[i])
If a value equals NaN or PositiveInfinity, the result stored into the corresponding destination location is set to NaN. If a value equals NegativeInfinity, the result stored into the corresponding destination location is set to 0.
This method may call into the underlying C runtime or employ instructions specific to the current architecture. Exact results may differ between different operating systems or architectures.