14 #ifndef QMCPLUSPLUS_SPOSET_INFO_H 15 #define QMCPLUSPLUS_SPOSET_INFO_H 39 void add(std::vector<SPOInfo*>& state_vector);
67 void report(
const std::string& pad =
"");
70 template<
typename SPOI>
73 for (
int i = 0; i < state_vector.size(); ++i)
78 template<
typename SPOI>
79 inline void finish(std::vector<int>& subset,
80 std::vector<SPOI*>& state_vector,
84 for (
int i = 0; i < subset.size(); ++i)
85 add(state_vector[subset[i]]);
136 template<
typename SPOI>
146 inline void add(SPOI* state)
171 for (
int i = 0; i <
size(); ++i)
void index_sort()
sort states by index
std::vector< SPOInfo * > states
collection of SPOInfo
bool index_order(const SPOInfo *left, const SPOInfo *right)
comparison function for sorting SPOInfo based on orbital index
void delete_iter(IT first, IT last)
delete the pointers in [first,last)
helper functions for EinsplineSetBuilder
QTBase::RealType RealType
QMCTraits::RealType RealType
void finish(std::vector< SPOI *> &state_vector, orderings ord=spoinfo::no_order, RealType tol=1e-6)
void clear()
empty collection and render mutable
void determine_order(RealType tol)
determine the ordering of the states, if any
comparison functor for sorting SPOInfo based on energy
bool energies_present
whether all states have an energy assigned
base class for the real SPOSet builder
void report(const std::string &pad="")
SPOI * operator[](int s) const
base class to describe a single orbital in an SPOSet
void count_degeneracies()
count energetic degeneracy of states
bool energy_ordered() const
void modify()
render collection mutable
collection of orbital info for SPOSet instance or builder
int index_min
minimum orbital index in the set (w.r.t the full set)
const SPOInfo * operator[](int s) const
std::vector< SPOInfo * > states_t
int index_max
maximum orbital index in the set (w.r.t the full set)
void energy_sort(RealType tol)
sort states by energy
bool has_energies() const
bool is_complete
whether initialization is complete and SPOSetInfo is ready for use
RealType energy_tolerance() const
SPOI *& operator[](int s)
bool indices_present
whether all states have an index assigned
std::vector< SPOI * > states
RealType energy_tol
tolerance used to sort energies
void energy_sort(RealType tol=1e-6, bool assign_indices=false)
void finish(std::vector< int > &subset, std::vector< SPOI *> &state_vector, orderings ord=spoinfo::no_order, RealType tol=1e-6)
QMCTraits::RealType RealType
orderings order
enum for how states are ordered
orderings
enumeration of possible orbital info orderings
void finish(orderings ord=spoinfo::no_order, RealType tol=1e-6)
renders collection immutable, must be called at end of initialization
bool index_ordered() const