23 #ifndef QMCPLUSPLUS_WALKERCONFIGURATIONS_H 24 #define QMCPLUSPLUS_WALKERCONFIGURATIONS_H 109 void resize(
int numWalkers,
size_t numPtcls);
145 template<
class INPUT_ITER>
Walker_t * operator[](int i)
const Walker_t * operator[](int i) const
helper functions for EinsplineSetBuilder
size_t getActiveWalkers() const
return the number of active walkers
A set of light weight walkers that are carried between driver sections and restart.
void pop_back()
delete the last Walker_t*
void setWalkerOffsets(const std::vector< int > &o)
return the total number of active walkers among a MPI group
walker_list__t::iterator iterator
FIX: a type alias of iterator for an object should not be for just one of many objects it holds...
void push_back(std::unique_ptr< Walker_t > awalker)
add Walker_t* at the end
size_t getGlobalNumWalkers() const
return the total number of active walkers among a MPI group
const_iterator begin() const
return the first const_iterator
iterator destroyWalkers(iterator first, iterator last)
destroy Walkers from itstart to itend
void clear()
clear the walker_list_ without destroying them
void reset()
reset the Walkers
const_iterator end() const
return the last const_iterator [begin(), end())
WalkerConfigurations & operator=(const WalkerConfigurations &)=delete
void copyWalkers(iterator first, iterator last, iterator start)
copy walkers
void createWalkers(int numWalkers, size_t numPtcls)
create numWalkers Walkers
walker_list__t::const_iterator const_iterator
const_iterator of Walker container
std::vector< std::unique_ptr< Walker_t > > walker_list__t
container type of Walkers
QMCTraits::FullPrecRealType FullPrecRealType
const std::vector< int > & getWalkerOffsets() const
Monte Carlo Data of an ensemble.
void insert(iterator it, INPUT_ITER first, INPUT_ITER last)
insert elements
void resize(int numWalkers, size_t numPtcls)
clean up the walker list and make a new list
typename t_traits::RealType RealType
typedef for real data type
~WalkerConfigurations()
default destructor
QTFull::RealType FullPrecRealType
MCDataType< FullPrecRealType > EnsembleProperty
void putConfigurations(Walker_t::RealType *target, QMCTraits::FullPrecRealType *weights) const
save the particle positions of all the walkers into target
iterator end()
return the last iterator, [begin(), end())
walker_list__t walker_list_
a collection of walkers
std::vector< int > walker_offsets_
starting index of the walkers in a processor group
A container class to represent a walker.
iterator begin()
return the first iterator