16 #ifndef QMCPLUSPLUS_BACKFLOW_EE_KSPACE_H 17 #define QMCPLUSPLUS_BACKFLOW_EE_KSPACE_H 38 std::vector<RealType>
Fk;
138 for (
int i = 0; i <
Fk.size(); ++i)
180 for (
int i = 0; i < num; i++)
188 for (
int i = 0; i < num; i++)
194 for (
int i = 0; i < num; i++)
202 for (
int i = 0; i < num; i++)
208 for (
int i = 0; i < num; i++)
214 for (
int i = 0; i < num; i++)
222 for (
int i = 0; i < num; i++)
228 for (
int i = 0; i < num; i++)
234 for (
int i = 0; i < num; i++)
246 inline void restore(
int iat,
int UpdateType)
override 257 throw std::runtime_error(
"Backflow_ee_kSpace::evaluate not implemented. There was an implementation with" 258 " complex-valued storage that may be resurrected using real-valued storage.");
263 APP_ABORT(
"This shouldn't be called: Backflow_ee_kSpace::evaluate(Bmat)");
271 throw std::runtime_error(
"Backflow_ee_kSpace::evaluate not implemented. There was an implementation with" 272 " complex-valued storage that may be resurrected using real-valued storage.");
279 const std::vector<int>& index)
override 290 const std::vector<int>& index,
302 const std::vector<int>& index,
void resize(size_type n, Type_t val=Type_t())
Resize the container.
void restore(int iat, int UpdateType) override
int NumTargets
number of quantum particles
void evaluate(const ParticleSet &P, ParticleSet &QP, GradMatrix &Bmat_full, HessMatrix &Amat) override
calculate quasi-particle coordinates, Bmat and Amat
helper functions for EinsplineSetBuilder
void checkOutVariables(const opt_variables_type &active) override
Base class for backflow transformations.
QMCTraits::ComplexType ComplexType
QTBase::ComplexType ComplexType
std::vector< int > offsetPrms
void evaluatePbyP(const ParticleSet &P, int iat, ParticleSet::ParticlePos &newQP, GradMatrix &Bmat, HessMatrix &Amat) override
calculate quasi-particle coordinates and Amat after pbyp move
void addFunc(int ia, int ib)
void resize(size_type n, size_type m)
Resize the container.
Attaches a unit to a Vector for IO.
Backflow_ee_kSpace(ParticleSet &ions, ParticleSet &els)
void evaluatePbyP(const ParticleSet &P, ParticleSet::ParticlePos &newQP, const std::vector< int > &index, HessMatrix &Amat) override
calculate quasi-particle coordinates and Amat after pbyp move
ParticleIndex GroupID
Species ID.
int groups() const
return the number of groups
const auto & getSimulationCell() const
int indexOffset() override
Specialized paritlce class for atomistic simulations.
void evaluateWithDerivatives(const ParticleSet &P, ParticleSet &QP, GradMatrix &Bmat_full, HessMatrix &Amat, GradMatrix &Cmat, GradMatrix &Ymat, HessArray &Xmat) override
calculate quasi-particle coordinates, Bmat and Amat calculate derivatives wrt to variational paramete...
Vector< ComplexType > Rhok
void evaluatePbyP(const ParticleSet &P, int iat, ParticleSet::ParticlePos &newQP) override
calculate quasi-particle coordinates after pbyp move
void evaluate(const ParticleSet &P, ParticleSet &QP) override
calculate quasi-particle coordinates only
void evaluatePbyP(const ParticleSet &P, ParticleSet::ParticlePos &newQP, const std::vector< int > &index, GradMatrix &Bmat, HessMatrix &Amat) override
calculate quasi-particle coordinates and Amat after pbyp move
void evaluatePbyP(const ParticleSet &P, int iat, ParticleSet::ParticlePos &newQP, HessMatrix &Amat) override
calculate quasi-particle coordinates and Amat after pbyp move
class to handle a set of variables that can be modified during optimizations
void checkInVariables(opt_variables_type &active) override
void evaluateBmatOnly(const ParticleSet &P, GradMatrix &Bmat_full) override
calculate only Bmat This is used in pbyp moves, in updateBuffer()
int where(int i) const
return the locator of the i-th Index
#define APP_ABORT(msg)
Widely used but deprecated fatal error macros from legacy code.
void acceptMove(int iat, int UpdateMode) override
void evaluate(const ParticleSet &P, ParticleSet &QP, GradVector &Bmat, HessMatrix &Amat)
ParticleSet & CenterSys
Reference to the center.
opt_variables_type myVars
set of variables to be optimized
void registerData(WFBufferType &buf) override
void insertFrom(const VariableSet &input)
insert a VariableSet to the list
std::vector< RealType > Fk
void reportStatus(std::ostream &os) override
void evaluatePbyP(const ParticleSet &P, ParticleSet::ParticlePos &newQP, const std::vector< int > &index) override
calculate quasi-particle coordinates after pbyp move
void print(std::ostream &os, int leftPadSpaces=0, bool printHeader=false) const
int getIndex(const std::string &vname) const
return the Index vaule for the named parameter
bool isOptimizable() override
void initialize(ParticleSet &P, std::vector< RealType > &yk)
void resetParameters(const opt_variables_type &active) override
std::unique_ptr< BackflowFunctionBase > makeClone(ParticleSet &tqp) const override