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

np.searchsorted error! #436

Open wangfeixing opened 3 years ago

wangfeixing commented 3 years ago

i use "np.searchsorted" function like the code below: List list1 = new List() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; List list2 = new List() { 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 8.1, 9.1, 10.1 }; NDArray array1 = np.array(list1.ToArray()); NDArray array2 = np.array(list2.ToArray());

        int kk = np.searchsorted(array2, 3.0);

but it reports the error "System.IndexOutOfRangeException",is this a bug?