|
BioCMAMC-ST
|
Utilities and wrap around kokkos random generator. More...
#include <prng.hpp>
Public Types | |
| using | pool_type |
Public Member Functions | |
| KPRNG (size_t _seed=0) | |
| KOKKOS_INLINE_FUNCTION double | double_uniform () const |
| template<FloatingPointType T> | |
| KOKKOS_INLINE_FUNCTION T | uniform () const |
| template<FloatingPointType T> | |
| KOKKOS_INLINE_FUNCTION T | uniform (T a, T b) const |
| Kokkos::View< double *, ComputeSpace > | double_uniform (size_t n_sample, double a=0., double b=1.) const |
| template<size_t n_r> | |
| Kokkos::View< double[n_r], ComputeSpace > | double_uniform_view () const |
| template<size_t n_r> | |
| KOKKOS_INLINE_FUNCTION std::array< double, n_r > | double_uniform () const |
| KOKKOS_INLINE_FUNCTION uint64_t | uniform_u (uint64_t a, uint64_t b) const |
| auto | get_seed () const |
Public Attributes | |
| pool_type | random_pool |
Private Member Functions | |
| template<typename random_pool_t, size_t n_r, size_t... I> | |
| KOKKOS_INLINE_FUNCTION std::array< double, n_r > | generate_uniform_impl (random_pool_t pool, std::index_sequence< I... >) const |
Private Attributes | |
| std::size_t | seed {} |
Utilities and wrap around kokkos random generator.
| using MC::KPRNG::pool_type |
|
explicit |
|
inlinenodiscard |
|
inline |
|
nodiscard |
|
inline |
|
inlineprivate |
|
inlinenodiscard |
|
inline |
|
inline |
|
inlinenodiscard |
| pool_type MC::KPRNG::random_pool |
|
private |