1 #ifndef GUESS_LIST_1D_HPP
2 #define GUESS_LIST_1D_HPP
8 View<int**,CLayout,Device>
list;
13 :
list(
"guess_list_1D", 2, range.n)
18 for(
int i=0; i<range.
n; i++){
22 int middle=down + (up-down)/2;
24 if (val >= view(middle-1)){
29 middle = down + (up-down)/2;
35 if (val < view(down-1) || val > view(up-1)){
41 for(
int i=0; i<(range.
n-1); i++){
50 template<
class Device2>
Definition: guess_list_1d.hpp:7
View< int **, CLayout, Device > list
Definition: guess_list_1d.hpp:8
void mirror_copy(T1 &view_dest, const T2 &view_src)
Definition: my_mirror_view.hpp:122
GuessList1D()
Definition: guess_list_1d.hpp:10
GuessList1D< Device2 > mirror() const
Definition: guess_list_1d.hpp:51
View< T *, CLayout, Device > my_mirror_view(const View< T *, CLayout, Device > &view, Device nd)
Definition: my_mirror_view.hpp:14
GuessList1D(const UniformRange &range, const View< double *, Device > &view)
Definition: guess_list_1d.hpp:12