25 template<
bool GEN_TEST_DATA>
28 std::vector<ParticleSet::ParticlePos>& deterministic_rs,
31 int nwalkers = num_psets;
32 std::vector<ParticleSet> psets(num_psets,
pset_target);
33 if constexpr (GEN_TEST_DATA)
35 std::cout <<
"Initialize OneBodyDensityMatrices::accumulate psets with:\n{";
36 std::vector<ParticleSet> psets;
37 for (
int iw = 0; iw < nwalkers; ++iw)
40 psets.back().randomizeFromSource(pset_source);
42 for (
auto r : psets.back().R)
50 for (
int iw = 0; iw < nwalkers; ++iw)
51 psets[iw].R = deterministic_rs[iw];
59 std::vector<ParticleSet::ParticlePos>& deterministic_rs,
65 std::vector<ParticleSet::ParticlePos>& deterministic_rs,
The operator<< functions provide output for data structures that can be used to directly initialize t...
helper functions for EinsplineSetBuilder
Some ParticleSet functions use the global Random so we need some helper functions to avoid interminan...
This wrapper is to allow us to leave the user facing operator<< for classes alone.
Specialized paritlce class for atomistic simulations.
std::vector< ParticleSet > generateRandomParticleSets(ParticleSet &pset_target, ParticleSet &pset_source, std::vector< ParticleSet::ParticlePos > &deterministic_rs, int num_psets)
This function sets particle set positions from a set of Rs or writes out a set of positions for test ...
template std::vector< ParticleSet > generateRandomParticleSets< false >(ParticleSet &pset_target, ParticleSet &pset_source, std::vector< ParticleSet::ParticlePos > &deterministic_rs, int num_psets)
template std::vector< ParticleSet > generateRandomParticleSets< true >(ParticleSet &pset_target, ParticleSet &pset_source, std::vector< ParticleSet::ParticlePos > &deterministic_rs, int num_psets)