forked from SciSharp/NumSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnp.cs
More file actions
23 lines (22 loc) · 821 Bytes
/
np.cs
File metadata and controls
23 lines (22 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Text;
namespace NumSharp.Core
{
/// <summary>
/// API bridge between NumSharp and Python NumPy
/// </summary>
public static partial class np
{
// https://docs.scipy.org/doc/numpy-1.15.0/user/basics.types.html
public static Type uint8 => typeof(byte);
public static Type int16 => typeof(short);
public static Type int32 => typeof(int); // Int32
public static Type uint32 => typeof(uint); // UInt32
public static Type int64 => typeof(long); // Int64
public static Type float32 => typeof(float); // Single
public static Type float64 => typeof(double);
public static Type chars => typeof(string);
public static NumPyRandom random => new NumPyRandom();
}
}