QMCPACK
test_random_seq.cpp File Reference
+ Include dependency graph for test_random_seq.cpp:

Go to the source code of this file.

Namespaces

 qmcplusplus
 helper functions for EinsplineSetBuilder
 

Functions

 TEST_CASE ("gaussian random array length 1", "[particle_base]")
 
 TEST_CASE ("gaussian random array length 2", "[particle_base]")
 
 TEST_CASE ("gaussian random array length 3", "[particle_base]")
 
 TEST_CASE ("gaussian random particle attrib array length 1", "[particle_base]")
 
 TEST_CASE ("gaussian random input one", "[particle_base]")
 
 TEST_CASE ("gaussian random input zero", "[particle_base]")
 
std::vector< double > gauss_random_vals (size_test *3+(size_test *3) % 2+size_test)
 
 makeGaussRandomWithEngine (gauss_random_vals, rng)
 
 makeGaussRandomWithEngine (mc_coords_rs, rng)
 
 checkRs (mc_coords_rs.positions)
 
 makeGaussRandomWithEngine (mc_coords_rsspins, rng)
 
 checkRs (mc_coords_rsspins.positions)
 
 for (int i=0;i< size_test;++i) CHECK(Approx(gauss_random_vals[offset_for_rs+i])
 

Variables

auto checkRs
 
MCCoords< CoordsType::POS > mc_coords_rs (size_test)
 
MCCoords< CoordsType::POS_SPIN > mc_coords_rsspins (size_test)
 
int offset_for_rs = (3 * size_test) + (3 * size_test) % 2