Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ binary_search()

int stan::math::opencl_kernels::binary_search ( __global SCAL *  input,
int  start,
int  end,
SCAL  value 
)

Searches for the index of the element that is larger than or equal to given value in given range.

Parameters
inputdata to search in
startstart of the sorted range to search
endend of the sorted range to search
valuevalue to search for

Definition at line 62 of file mergesort.hpp.