Skip to content

np.searchsorted error! #436

@wangfeixing

Description

@wangfeixing

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions