Open wangfeixing opened 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?
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());
but it reports the error "System.IndexOutOfRangeException",is this a bug?