25 template <
typename T,
unsigned Dim>
52 for (
unsigned int i = 0; i <
Dim; i++) {
61 for (
unsigned int i = 0; i <
Dim; i++) {
72 KOKKOS_INLINE_FUNCTION
void operator()(
const size_t i)
const {
74 typename GeneratorPool::generator_type rand_gen =
rand_pool.get_state();
76 for (
unsigned d = 0; d <
Dim; ++d) {
77 v(i)[d] = rand_gen.drand(
rmin[d],
rmax[d]);
KOKKOS_INLINE_FUNCTION randu(view_type v_, GeneratorPool rand_pool_, T *rmin_p, T *rmax_p)
Constructor for the randu functor.
KOKKOS_INLINE_FUNCTION randu(view_type v_, GeneratorPool rand_pool_)
typename Kokkos::Random_XorShift64_Pool<> GeneratorPool
typename ippl::detail::ViewType< ippl::Vector< double, Dim >, 1 >::view_type view_type
KOKKOS_INLINE_FUNCTION void operator()(const size_t i) const
Operator to generate random numbers.