13 #ifndef QMCPLUSPLUS_CONSTANTORBITAL_H 14 #define QMCPLUSPLUS_CONSTANTORBITAL_H 27 std::string
getClassName()
const override {
return "ConstantOrbital"; }
56 return std::make_unique<ConstantOrbital>();
void registerData(ParticleSet &P, WFBufferType &buf) override
For particle-by-particle move.
void restore(int iat) override
If a move for iat-th particle is rejected, restore to the content.
helper functions for EinsplineSetBuilder
QTBase::GradType GradType
std::unique_ptr< WaveFunctionComponent > makeClone(ParticleSet &tpq) const override
make clone
Attaches a unit to a Vector for IO.
std::string getClassName() const override
return class name
std::complex< QTFull::RealType > LogValue
An abstract class for a component of a many-body trial wave function.
void evaluateDerivatives(ParticleSet &P, const opt_variables_type &optvars, Vector< ValueType > &dlogpsi, Vector< ValueType > &dhpsioverpsi) override
Compute the derivatives of both the log of the wavefunction and kinetic energy with respect to optimi...
Specialized paritlce class for atomistic simulations.
class to handle a set of variables that can be modified during optimizations
LogValue updateBuffer(ParticleSet &P, WFBufferType &buf, bool fromscratch=false) override
For particle-by-particle move.
PsiValue ratioGrad(ParticleSet &P, int iat, GradType &grad_iat) override
evaluate the ratio of the new to old WaveFunctionComponent value and the new gradient ...
QTFull::ValueType PsiValue
PsiValue ratio(ParticleSet &P, int iat) override
evaluate the ratio of the new to old WaveFunctionComponent value
LogValue evaluateLog(const ParticleSet &P, ParticleSet::ParticleGradient &G, ParticleSet::ParticleLaplacian &L) override
evaluate the value of the WaveFunctionComponent from scratch
Declaration of WaveFunctionComponent.
void acceptMove(ParticleSet &P, int iat, bool safe_to_delay=false) override
a move for iat-th particle is accepted.
void copyFromBuffer(ParticleSet &P, WFBufferType &buf) override
For particle-by-particle move.
GradType evalGrad(ParticleSet &P, int iat) override
return the current gradient for the iat-th particle