|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for random number generation (replacement for gsl_rng) More...
#include <gtest/gtest.h>#include <algorithm>#include <cmath>#include <numeric>#include <vector>#include "Utilities/Random.h"
Go to the source code of this file.
Classes | |
| class | RandomTest |
Functions | |
| TEST_F (RandomTest, UniformDistribution) | |
| TEST_F (RandomTest, GaussianDistribution) | |
| TEST_F (RandomTest, SeedReproducibility) | |
| TEST_F (RandomTest, DifferentSeedsDifferentSequences) | |
| TEST_F (RandomTest, GaussianStatistics) | |
Unit tests for random number generation (replacement for gsl_rng)
This file contains comprehensive unit tests for the GSL-compatible random number generator implementation. The implementation uses std::mt19937_64 (Mersenne Twister) as the underlying engine and provides uniform and Gaussian distributions.
Definition in file TestRandom.cpp.
| TEST_F | ( | RandomTest | , |
| DifferentSeedsDifferentSequences | |||
| ) |
Definition at line 111 of file TestRandom.cpp.
References gsl_rng_alloc(), gsl_rng_default, gsl_rng_free(), gsl_rng_uniform(), and gsl_rng::seed().

| TEST_F | ( | RandomTest | , |
| GaussianDistribution | |||
| ) |
Definition at line 73 of file TestRandom.cpp.
References gsl_ran_gaussian().

| TEST_F | ( | RandomTest | , |
| GaussianStatistics | |||
| ) |
Definition at line 134 of file TestRandom.cpp.
References gsl_ran_gaussian().

| TEST_F | ( | RandomTest | , |
| SeedReproducibility | |||
| ) |
Definition at line 93 of file TestRandom.cpp.
References gsl_rng_alloc(), gsl_rng_default, gsl_rng_free(), gsl_rng_uniform(), and gsl_rng::seed().

| TEST_F | ( | RandomTest | , |
| UniformDistribution | |||
| ) |
Definition at line 56 of file TestRandom.cpp.
References gsl_rng_uniform().
