Helpers for locating insertion indices in sorted arrays. More...
Functions | |
| template<class E1, class E2> | |
| auto | xt::searchsorted (E1 &&a, E2 &&v, bool right=true) |
| Find indices where elements should be inserted to maintain order. | |
Helpers for locating insertion indices in sorted arrays.
|
inline |
Find indices where elements should be inserted to maintain order.
| a | Input array: sorted (array_like). |
| v | Values to insert into a (array_like). |
| right | If false, the index of the first suitable location found is given. |
Definition at line 193 of file xset_operation.hpp.