forked from SciSharp/NumSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnp.sin.cs
More file actions
50 lines (46 loc) · 2.65 KB
/
np.sin.cs
File metadata and controls
50 lines (46 loc) · 2.65 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using NumSharp.Backends;
namespace NumSharp
{
public static partial class np
{
/// <summary>
/// Trigonometric sine, element-wise.
/// </summary>
/// <param name="x">Angle, in radians (2 \pi rad equals 360 degrees).</param>
/// <param name="outType">The dtype the returned ndarray should be of, only non integer values are supported.</param>
/// <returns>The sine of each element of x. This is a scalar if x is a scalar.</returns>
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.sin.html</remarks>
public static NDArray sin(in NDArray x, NPTypeCode? outType = null)
=> x.TensorEngine.Sin(x, outType);
/// <summary>
/// Trigonometric sine, element-wise.
/// </summary>
/// <param name="x">Angle, in radians (2 \pi rad equals 360 degrees).</param>
/// <param name="outType">The dtype the returned ndarray should be of, only non integer values are supported.</param>
/// <returns>The sine of each element of x. This is a scalar if x is a scalar.</returns>
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.sin.html</remarks>
public static NDArray sin(in NDArray x, Type outType)
=> x.TensorEngine.Sin(x, outType);
/// <summary>
/// Hyperbolic sine, element-wise. <br></br>
/// Equivalent to 1/2 * (np.exp(x) - np.exp(-x)) or -1j * np.sin(1j*x).
/// </summary>
/// <param name="x">Input array.</param>
/// <param name="outType">The dtype the returned ndarray should be of, only non integer values are supported.</param>
/// <returns>The sine of each element of x. This is a scalar if x is a scalar.</returns>
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.sinh.html</remarks>
public static NDArray sinh(in NDArray x, NPTypeCode? outType = null)
=> x.TensorEngine.Sinh(x, outType);
/// <summary>
/// Hyperbolic sine, element-wise. <br></br>
/// Equivalent to 1/2 * (np.exp(x) - np.exp(-x)) or -1j * np.sin(1j*x).
/// </summary>
/// <param name="x">Input array.</param>
/// <param name="outType">The dtype the returned ndarray should be of, only non integer values are supported.</param>
/// <returns>The sine of each element of x. This is a scalar if x is a scalar.</returns>
/// <remarks>https://docs.scipy.org/doc/numpy/reference/generated/numpy.sinh.html</remarks>
public static NDArray sinh(in NDArray x, Type outType)
=> x.TensorEngine.Sinh(x, outType);
}
}