13 #ifndef QMCPLUSPLUS_LINEARORBITAL_H 14 #define QMCPLUSPLUS_LINEARORBITAL_H 36 std::string
getClassName()
const override {
return "LinearOrbital"; }
43 for (
int i = 0; i < P.
R.size(); i++)
helper functions for EinsplineSetBuilder
QTBase::GradType GradType
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...
PsiValue ratio(ParticleSet &P, int iat) override
evaluate the ratio of the new to old WaveFunctionComponent value
Attaches a unit to a Vector for IO.
std::complex< T > convertValueToLog(const std::complex< T > &logpsi)
evaluate log(psi) as log(|psi|) and phase
ParticleLaplacian L
laplacians of the particles
TinyVector< ValueType, 3 > coeff
void acceptMove(ParticleSet &P, int iat, bool safe_to_delay=false) override
a move for iat-th particle is accepted.
std::complex< QTFull::RealType > LogValue
PsiValue ratioGrad(ParticleSet &P, int iat, GradType &grad_iat) override
evaluate the ratio of the new to old WaveFunctionComponent value and the new gradient ...
An abstract class for a component of a many-body trial wave function.
Specialized paritlce class for atomistic simulations.
ParticleGradient G
gradients of the particles
class to handle a set of variables that can be modified during optimizations
QTFull::ValueType PsiValue
void copyFromBuffer(ParticleSet &P, WFBufferType &buf) override
For particle-by-particle move.
LogValue log_value_
Current .
LogValue updateBuffer(ParticleSet &P, WFBufferType &buf, bool fromscratch=false) override
For particle-by-particle move.
LogValue evaluateLog(const ParticleSet &P, ParticleSet::ParticleGradient &G, ParticleSet::ParticleLaplacian &L) override
evaluate the value of the WaveFunctionComponent from scratch
void restore(int iat) override
If a move for iat-th particle is rejected, restore to the content.
LatticeGaussianProduct::ValueType ValueType
Declaration of WaveFunctionComponent.
std::string getClassName() const override
return class name
GradType evalGrad(ParticleSet &P, int iat) override
return the current gradient for the iat-th particle
void registerData(ParticleSet &P, WFBufferType &buf) override
For particle-by-particle move.