1 #ifndef UNIFORM_RANGE_HPP 
    2 #define UNIFORM_RANGE_HPP 
   23     KOKKOS_INLINE_FUNCTION 
double get_val(
int i)
 const{
 
   28         return (val<=val_max && val>=
val_min);
 
   31     KOKKOS_INLINE_FUNCTION 
int get_index(
double val)
 const{
 
   36     template<
class Device>
 
   37     View<double*,CLayout,Device> 
generate_view(
const std::string& name)
 const{
 
   39         auto uniform_range = *
this;
 
   40         View<double*,CLayout,Device> view(
NoInit(name), 
n);
 
   42         Kokkos::parallel_for(
"generate_view", Kokkos::RangePolicy<typename Device::execution_space>( 0,
n ), KOKKOS_LAMBDA( 
const int i){
 
   43             view(i) = uniform_range.get_val(i);
 
void parallel_for(const std::string name, int n_ptl, Function func, Option option, HostAoSoA aosoa_h, DeviceAoSoA aosoa_d)
Definition: streamed_parallel_for.hpp:252
Kokkos::ViewAllocateWithoutInitializing NoInit
Definition: space_settings.hpp:69