6 inline View<double*, HostType>
create_range_view(std::string name,
double x_min,
double x_max,
int n){
7 View<double*, HostType> range(
NoInit(name), n);
8 double dx = (x_max - x_min)/(n-1);
9 for(
int i = 0; i<n; i++){
10 range(i) = x_min + i*dx;
View< double *, HostType > create_range_view(std::string name, double x_min, double x_max, int n)
Definition: range_view.hpp:6
Kokkos::ViewAllocateWithoutInitializing NoInit
Definition: space_settings.hpp:69