SciSharp / NumSharp

High Performance Computation for N-D Tensors in .NET, similar API to NumPy.
https://github.com/SciSharp
Apache License 2.0
1.38k stars 192 forks source link

Cannot create an NDArray of shorts #506

Open NickBotelho opened 10 months ago

NickBotelho commented 10 months ago

When I try to initialize an NDArray with the short type, it throws a System.NotSupportedException. It seems like it only does this with shorts, every other type works fine. Heres a line of code to run to reproduce

var nd = new NDArray(dtype: np.int16, shape: new Shape(new []{1, 2}));