|
| KOKKOS_INLINE_FUNCTION | randn (view_type v_, GeneratorPool rand_pool_, T *mu_p, T *sd_p) |
| | Constructor for the randn functor.
|
| KOKKOS_INLINE_FUNCTION | randn (view_type v_, GeneratorPool rand_pool_) |
| KOKKOS_INLINE_FUNCTION const T & | getMu (unsigned int idx) const |
| | Getter function for mean in idx dimension.
|
| KOKKOS_INLINE_FUNCTION const T & | getSd (unsigned int idx) const |
| | Getter function for the standard deviation in idx dimension.
|
| KOKKOS_INLINE_FUNCTION void | operator() (const size_t i) const |
| | Operator to generate random numbers.
|
template<typename
T, unsigned Dim>
struct ippl::random::randn< T, Dim >
Functor to generate random numbers from a normal distribution.
This functor can be used to generates random numbers from a normal distribution with mean 0 and standard deviation 1.
- Template Parameters
-
| T | Data type of the random numbers. |
| GeneratorPool | Type of the random number generator pool. |
| Dim | Dimensionality of the random numbers. |
Definition at line 26 of file Randn.h.