20 #ifndef JDFTX_CORE_RANDOM_H 21 #define JDFTX_CORE_RANDOM_H 23 #include <core/scalar.h> 30 double uniform(
double start=0.0,
double end=1.0);
31 double normal(
double mean=0.0,
double sigma=1.0,
double cap=0.0);
35 #endif //JDFTX_CORE_RANDOM_H complex normalComplex(double sigma=1.0)
normal complex number with mean 0 and deviation sigma
double normal(double mean=0.0, double sigma=1.0, double cap=0.0)
normal random numbers with mean, sigma and an optional cap if non-zero
double uniform(double start=0.0, double end=1.0)
uniform random numbers between 0 and 1
Complex number (need to define our own because we need operators for gpu code as well) ...
Definition: scalar.h:49