forked from SciSharp/NumSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnp.exp.cs
More file actions
34 lines (31 loc) · 1.52 KB
/
np.exp.cs
File metadata and controls
34 lines (31 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using NumSharp.Backends;
namespace NumSharp
{
public partial class np
{
/// <summary>
/// Base-e exponential, element-wise.
/// </summary>
/// <param name="a">Input value.</param>
/// <param name="dtype">The dtype of the returned NDArray</param>
/// <returns>The natural logarithm of x, element-wise. This is a scalar NDArray.</returns>
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.exp.html</remarks>
public static NDArray exp(in NDArray a, Type dtype) => a.TensorEngine.Exp(a, dtype);
/// <summary>
/// Base-e exponential, element-wise.
/// </summary>
/// <param name="a">Input value.</param>
/// <param name="typeCode">The dtype of the returned NDArray</param>
/// <returns>The natural logarithm of x, element-wise. This is a scalar NDArray.</returns>
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.exp.html</remarks>
public static NDArray exp(in NDArray a, NPTypeCode typeCode) => a.TensorEngine.Exp(a, typeCode);
/// <summary>
/// Base-e exponential, element-wise.
/// </summary>
/// <param name="a">Input value.</param>
/// <returns>The natural logarithm of x, element-wise. This is a scalar NDArray.</returns>
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.exp.html</remarks>
public static NDArray exp(in NDArray a) => a.TensorEngine.Exp(a);
}
}