SciSharp / NumSharp

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

Cannot create an NDArray of shorts #506

Open NickBotelho opened 8 months ago

NickBotelho commented 8 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}));