36 Coord
const& max_corner,
39 : min_corner(min_corner), max_corner(max_corner), num_points_x(num_points_x)
41 spacing = Coord{(max_corner.x - min_corner.x) / num_points_x,
42 (max_corner.y - min_corner.y) / num_points_y};
45 __device__ Coord operator()(
int i)
const
47 return min_corner + Coord{(i % num_points_x) * spacing.x, (i / num_points_x) * spacing.y};
60 thrust::tabulate(rmm::exec_policy(), grid.begin(), grid.end(), gen);