Skip to content

Commit 8a141f6

Browse files
committed
added np.chars
1 parent 90bf977 commit 8a141f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ The NumPy class is a high-level abstraction of NDArray that allows NumSharp to b
4040

4141
### How to use
4242
```cs
43-
// init NumPy instance which pesists integer data type
44-
var np = new NumPy();
45-
43+
using np = NumSharp.Core.NumPy;
44+
```
45+
```cs
4646
// create a vector
4747
var nd = np.arange(12)
4848

src/NumSharp.Core/NumPy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public static partial class NumPy
1515
public static Type int64 => typeof(Int64);
1616
public static Type float32 => typeof(float);
1717
public static Type float64 => typeof(double);
18+
public static Type chars => typeof(string);
1819

1920
public static NumPyRandom random => new NumPyRandom();
2021
}

0 commit comments

Comments
 (0)