![]() |
QMCPACK
|
Public Member Functions | |
CountingJastrow (ParticleSet &P, std::unique_ptr< RegionType > c, const Matrix< RealType > &f, bool opt_C_flag, bool opt_F_flag) | |
std::string | getClassName () const override |
return class name More... | |
bool | isOptimizable () const override |
if true, this contains optimizable components More... | |
void | extractOptimizableObjectRefs (UniqueOptObjRefs &opt_obj_refs) override |
extract underlying OptimizableObject references More... | |
void | checkInVariablesExclusive (opt_variables_type &active) final |
check in variational parameters to the global list of parameters used by the optimizer. More... | |
void | checkOutVariables (const opt_variables_type &active) override |
check out variational optimizable variables More... | |
void | resetParametersExclusive (const opt_variables_type &active) override |
reset the parameters during optimizations. More... | |
void | initialize () |
void | reportStatus (std::ostream &os) override |
print the state, e.g., optimizables More... | |
LogValue | evaluateLog (const ParticleSet &P, ParticleSet::ParticleGradient &G, ParticleSet::ParticleLaplacian &L) override |
evaluate the value of the WaveFunctionComponent from scratch More... | |
void | recompute (const ParticleSet &P) override |
recompute the value of the WaveFunctionComponents which require critical accuracy. More... | |
void | evaluateExponents (const ParticleSet &P) |
void | evaluateExponents_print (std::ostream &os, const ParticleSet &P) |
void | evaluateTempExponents (ParticleSet &P, int iat) |
void | evaluateTempExponents_print (std::ostream &os, ParticleSet &P, int iat) |
GradType | evalGrad (ParticleSet &P, int iat) override |
return the current gradient for the iat-th particle More... | |
PsiValue | ratioGrad (ParticleSet &P, int iat, GradType &grad_iat) override |
evaluate the ratio of the new to old WaveFunctionComponent value and the new gradient More... | |
void | acceptMove (ParticleSet &P, int iat, bool safe_to_delay=false) override |
a move for iat-th particle is accepted. More... | |
void | restore (int iat) override |
If a move for iat-th particle is rejected, restore to the content. More... | |
PsiValue | ratio (ParticleSet &P, int iat) override |
evaluate the ratio of the new to old WaveFunctionComponent value More... | |
void | registerData (ParticleSet &P, WFBufferType &buf) override |
For particle-by-particle move. More... | |
LogValue | updateBuffer (ParticleSet &P, WFBufferType &buf, bool fromscratch=false) override |
For particle-by-particle move. More... | |
void | copyFromBuffer (ParticleSet &P, WFBufferType &buf) override |
For particle-by-particle move. More... | |
std::unique_ptr< WaveFunctionComponent > | makeClone (ParticleSet &tqp) const override |
make clone More... | |
void | evaluateDerivatives (ParticleSet &P, const opt_variables_type &active, Vector< ValueType > &dlogpsi, Vector< ValueType > &dhpsioverpsi) override |
void | addDebug (bool debug_flag, int seqlen, int period) |
![]() | |
const LogValue & | get_log_value () const |
WaveFunctionComponent (const std::string &obj_name="") | |
default constructor More... | |
virtual | ~WaveFunctionComponent () |
default destructor More... | |
virtual void | checkSanity () const |
Validate the internal consistency of the object. More... | |
const std::string & | getName () const |
return object name More... | |
PsiValue | getValue () const |
assembles the full value More... | |
virtual bool | isFermionic () const |
true, if this component is fermionic More... | |
virtual bool | isMultiDet () const |
true, if this component is multi-determinant More... | |
virtual void | registerTWFFastDerivWrapper (const ParticleSet &P, TWFFastDerivWrapper &twf) const |
Register the component with the TWFFastDerivWrapper wrapper. More... | |
virtual void | mw_evaluateLog (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, const RefVector< ParticleSet::ParticleGradient > &G_list, const RefVector< ParticleSet::ParticleLaplacian > &L_list) const |
evaluate from scratch the same type WaveFunctionComponent of multiple walkers More... | |
virtual void | mw_recompute (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, const std::vector< bool > &recompute) const |
virtual void | evaluateHessian (ParticleSet &P, HessVector &grad_grad_psi_all) |
virtual void | prepareGroup (ParticleSet &P, int ig) |
Prepare internal data for updating WFC correspond to a particle group It should be called before moving particles of a given group. More... | |
virtual void | mw_prepareGroup (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, int ig) const |
virtual GradType | evalGradWithSpin (ParticleSet &P, int iat, ComplexType &spingrad) |
return the current spin gradient for the iat-th particle Default implementation assumes that WaveFunctionComponent does not explicitly depend on Spin. More... | |
template<CoordsType CT> | |
void | mw_evalGrad (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, const int iat, TWFGrads< CT > &grads_now) const |
compute the current gradients for the iat-th particle of multiple walkers More... | |
virtual void | mw_evalGrad (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, int iat, std::vector< GradType > &grad_now) const |
compute the current gradients for the iat-th particle of multiple walkers More... | |
virtual GradType | evalGradSource (ParticleSet &P, ParticleSet &source, int iat) |
return the logarithmic gradient for the iat-th particle of the source particleset More... | |
virtual GradType | evalGradSource (ParticleSet &P, ParticleSet &source, int iat, TinyVector< ParticleSet::ParticleGradient, OHMMS_DIM > &grad_grad, TinyVector< ParticleSet::ParticleLaplacian, OHMMS_DIM > &lapl_grad) |
Adds the gradient w.r.t. More... | |
virtual PsiValue | ratioGradWithSpin (ParticleSet &P, int iat, GradType &grad_iat, ComplexType &spingrad_iat) |
evaluate the ratio of the new to old WaveFunctionComponent value and the new spin gradient Default implementation assumes that WaveFunctionComponent does not explicitly depend on Spin. More... | |
template<CoordsType CT> | |
void | mw_ratioGrad (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, int iat, std::vector< PsiValue > &ratios, TWFGrads< CT > &grad_new) const |
virtual void | mw_ratioGrad (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, int iat, std::vector< PsiValue > &ratios, std::vector< GradType > &grad_new) const |
compute the ratio of the new to old WaveFunctionComponent value and the new gradient of multiple walkers More... | |
virtual void | mw_accept_rejectMove (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, int iat, const std::vector< bool > &isAccepted, bool safe_to_delay=false) const |
moves of the iat-th particle on some walkers in a batch is accepted. More... | |
virtual void | completeUpdates () |
complete all the delayed or asynchronous operations before leaving the p-by-p move region. More... | |
virtual void | mw_completeUpdates (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list) const |
complete all the delayed or asynchronous operations for all the walkers in a batch before leaving the p-by-p move region. More... | |
virtual void | mw_calcRatio (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, int iat, std::vector< PsiValue > &ratios) const |
compute the ratio of the new to old WaveFunctionComponent value of multiple walkers More... | |
virtual LogValue | evaluateGL (const ParticleSet &P, ParticleSet::ParticleGradient &G, ParticleSet::ParticleLaplacian &L, bool fromscratch) |
compute gradients and laplacian of the TWF with respect to each particle. More... | |
virtual void | mw_evaluateGL (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, const RefVector< ParticleSet::ParticleGradient > &G_list, const RefVector< ParticleSet::ParticleLaplacian > &L_list, bool fromscratch) const |
evaluate gradients and laplacian of the same type WaveFunctionComponent of multiple walkers More... | |
virtual void | createResource (ResourceCollection &collection) const |
initialize a shared resource and hand it to a collection More... | |
virtual void | acquireResource (ResourceCollection &collection, const RefVectorWithLeader< WaveFunctionComponent > &wfc_list) const |
acquire a shared resource from a collection More... | |
virtual void | releaseResource (ResourceCollection &collection, const RefVectorWithLeader< WaveFunctionComponent > &wfc_list) const |
return a shared resource to a collection More... | |
virtual RealType | KECorrection () |
Return the Chiesa kinetic energy correction. More... | |
virtual void | evaluateDerivatives (ParticleSet &P, const opt_variables_type &optvars, Vector< ValueType > &dlogpsi, Vector< ValueType > &dhpsioverpsi)=0 |
Compute the derivatives of both the log of the wavefunction and kinetic energy with respect to optimizable parameters. More... | |
virtual void | evaluateDerivativesWF (ParticleSet &P, const opt_variables_type &optvars, Vector< ValueType > &dlogpsi) |
Compute the derivatives of the log of the wavefunction with respect to optimizable parameters. More... | |
virtual void | evaluateGradDerivatives (const ParticleSet::ParticleGradient &G_in, std::vector< ValueType > &dgradlogpsi) |
Calculates the derivatives of ![]() | |
virtual void | finalizeOptimization () |
virtual void | evaluateRatiosAlltoOne (ParticleSet &P, std::vector< ValueType > &ratios) |
evaluate the ratios of one virtual move with respect to all the particles More... | |
virtual void | evaluateRatios (const VirtualParticleSet &VP, std::vector< ValueType > &ratios) |
evaluate ratios to evaluate the non-local PP More... | |
virtual void | evaluateSpinorRatios (const VirtualParticleSet &VP, const std::pair< ValueVector, ValueVector > &spinor_multiplier, std::vector< ValueType > &ratios) |
Used by SOECPComponent for faster SOC evaluation. More... | |
virtual void | mw_evaluateRatios (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< const VirtualParticleSet > &vp_list, std::vector< std::vector< ValueType >> &ratios) const |
evaluate ratios to evaluate the non-local PP multiple walkers More... | |
virtual void | evaluateDerivRatios (const VirtualParticleSet &VP, const opt_variables_type &optvars, std::vector< ValueType > &ratios, Matrix< ValueType > &dratios) |
evaluate ratios to evaluate the non-local PP More... | |
virtual void | mw_evalGradWithSpin (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, int iat, std::vector< GradType > &grad_now, std::vector< ComplexType > &spingrad_now) const |
compute the current gradients and spin gradients for the iat-th particle of multiple walkers More... | |
virtual void | mw_ratioGradWithSpin (const RefVectorWithLeader< WaveFunctionComponent > &wfc_list, const RefVectorWithLeader< ParticleSet > &p_list, int iat, std::vector< PsiValue > &ratios, std::vector< GradType > &grad_new, std::vector< ComplexType > &spingrad_new) const |
compute the ratio of the new to old WaveFunctionComponent value and the new gradient/spingradient of multiple walkers More... | |
![]() | |
OptimizableObject (const std::string &name) | |
const std::string & | getName () const |
bool | isOptimized () const |
void | setOptimization (bool state) |
virtual void | writeVariationalParameters (hdf_archive &hout) |
Write the variational parameters for this object to the VP HDF file. More... | |
virtual void | readVariationalParameters (hdf_archive &hin) |
Read the variational parameters for this object from the VP HDF file. More... | |
Protected Types | |
enum | opt_var { OPT_F, NUM_OPT_VAR } |
Protected Attributes | |
int | num_els |
int | num_regions |
bool | debug = false |
int | debug_seqlen |
int | debug_period |
Matrix< RealType > | F |
std::unique_ptr< RegionType > | C |
bool | opt_F |
bool | opt_C |
std::vector< RealType > | FCsum |
Matrix< PosType > | FCgrad |
Matrix< RealType > | FClap |
std::vector< RealType > | FCggsum |
std::vector< RealType > | FClapsum |
std::vector< RealType > | FCsum_t |
std::vector< PosType > | FCgrad_t |
std::vector< RealType > | FClap_t |
RealType | Jval |
std::vector< PosType > | Jgrad |
std::vector< RealType > | Jlap |
RealType | Jval_t |
std::vector< PosType > | Jgrad_t |
std::vector< RealType > | Jlap_t |
Matrix< RealType > | dCsum |
Matrix< RealType > | dCggsum |
Matrix< RealType > | dClapsum |
std::vector< RealType > | dCsum_t |
std::vector< RealType > | dCFCggsum |
std::vector< int > | dCindex |
std::array< std::vector< int >, NUM_OPT_VAR > | opt_index |
std::array< std::vector< std::string >, NUM_OPT_VAR > | opt_id |
![]() | |
const std::string | my_name_ |
Name of the object It is required to be different for objects of the same derived type like multiple J1. More... | |
LogValue | log_value_ |
Current ![]() | |
Definition at line 23 of file CountingJastrow.h.
|
protected |
|
inline |
Definition at line 94 of file CountingJastrow.h.
References ParticleSet::getTotalNum(), and CountingJastrow< RegionType >::num_els.
|
inlineoverridevirtual |
a move for iat-th particle is accepted.
Update the current content.
P | target ParticleSet |
iat | index of the particle whose new position was proposed |
safe_to_delay | if true, delayed accept is safe. |
Implements WaveFunctionComponent.
Definition at line 395 of file CountingJastrow.h.
References CountingJastrow< RegionType >::C, CountingJastrow< RegionType >::FCgrad, CountingJastrow< RegionType >::FCgrad_t, CountingJastrow< RegionType >::FClap, CountingJastrow< RegionType >::FClap_t, CountingJastrow< RegionType >::FCsum, CountingJastrow< RegionType >::FCsum_t, I, CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jgrad_t, CountingJastrow< RegionType >::Jlap, CountingJastrow< RegionType >::Jlap_t, CountingJastrow< RegionType >::Jval, CountingJastrow< RegionType >::Jval_t, WaveFunctionComponent::log_value_, CountingJastrow< RegionType >::num_els, and CountingJastrow< RegionType >::num_regions.
Referenced by qmcplusplus::TEST_CASE().
|
inline |
Definition at line 680 of file CountingJastrow.h.
References CountingJastrow< RegionType >::debug, CountingJastrow< RegionType >::debug_period, and CountingJastrow< RegionType >::debug_seqlen.
|
inlinefinalvirtual |
check in variational parameters to the global list of parameters used by the optimizer.
active | a super set of optimizable variables |
The existing checkInVariables implementation in WFC/SPO/.. are inclusive and it calls checkInVariables of its members class A: public SPOSet {} class B: public WFC { A objA; checkInVariables() { objA.checkInVariables(); } };
With OptimizableObject, class A: public OptimizableObject {} class B: public OptimizableObject { A objA; checkInVariablesExclusive() { // should not call objA.checkInVariablesExclusive() if objA has been extracted; } }; A vector of OptimizableObject, will be created by calling extractOptimizableObjects(). All the checkInVariablesExclusive() will be called through this vector and thus checkInVariablesExclusive implementation should only handle non-OptimizableObject members.
Implements OptimizableObject.
Definition at line 110 of file CountingJastrow.h.
References CountingJastrow< RegionType >::C, and WaveFunctionComponent::myVars.
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
check out variational optimizable variables
active | a super set of optimizable variables |
Reimplemented from WaveFunctionComponent.
Definition at line 116 of file CountingJastrow.h.
References CountingJastrow< RegionType >::C, VariableSet::getIndex(), and WaveFunctionComponent::myVars.
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
For particle-by-particle move.
Copy data or attach memory from a walker buffer to the objects of this class. The log value, P.G and P.L contribution from the objects of this class are also added.
P | particle set |
buf | Anonymous storage |
Implements WaveFunctionComponent.
Definition at line 453 of file CountingJastrow.h.
References PooledMemory< T_scalar, Alloc >::current(), DEBUG_PSIBUFFER, PooledMemory< T_scalar, Alloc >::get(), CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jlap, and CountingJastrow< RegionType >::Jval.
|
inlineoverridevirtual |
return the current gradient for the iat-th particle
P | quantum particle set |
iat | particle index |
Reimplemented from WaveFunctionComponent.
Definition at line 381 of file CountingJastrow.h.
References CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jval, and WaveFunctionComponent::log_value_.
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverride |
Definition at line 475 of file CountingJastrow.h.
References APP_ABORT, qmcplusplus::app_log(), Matrix< T, Alloc >::begin(), CountingJastrow< RegionType >::C, copy(), CountingJastrow< RegionType >::dCFCggsum, CountingJastrow< RegionType >::dCggsum, CountingJastrow< RegionType >::dClapsum, CountingJastrow< RegionType >::dCsum, CountingJastrow< RegionType >::debug, CountingJastrow< RegionType >::debug_period, CountingJastrow< RegionType >::debug_seqlen, qmcplusplus::dot(), Matrix< T, Alloc >::end(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateExponents_print(), CountingJastrow< RegionType >::FCggsum, CountingJastrow< RegionType >::FCgrad, CountingJastrow< RegionType >::FClap, CountingJastrow< RegionType >::FClapsum, CountingJastrow< RegionType >::FCsum, ParticleSet::G, VariableSet::getIndex(), I, VariableSet::Index, qmcplusplus::Units::energy::J, WaveFunctionComponent::myVars, VariableSet::name(), VariableSet::NameAndValue, CountingJastrow< RegionType >::num_els, CountingJastrow< RegionType >::num_regions, CountingJastrow< RegionType >::opt_C, CountingJastrow< RegionType >::opt_F, CountingJastrow< RegionType >::OPT_F, CountingJastrow< RegionType >::opt_id, CountingJastrow< RegionType >::opt_index, and VariableSet::size().
Referenced by qmcplusplus::TEST_CASE().
|
inline |
Definition at line 242 of file CountingJastrow.h.
References qmcplusplus::app_log(), Matrix< T, Alloc >::begin(), CountingJastrow< RegionType >::C, CountingJastrow< RegionType >::debug, CountingJastrow< RegionType >::debug_period, CountingJastrow< RegionType >::debug_seqlen, qmcplusplus::dot(), Matrix< T, Alloc >::end(), CountingJastrow< RegionType >::evaluateExponents_print(), CountingJastrow< RegionType >::F, CountingJastrow< RegionType >::FCgrad, CountingJastrow< RegionType >::FClap, CountingJastrow< RegionType >::FCsum, I, qmcplusplus::Units::energy::J, CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jlap, CountingJastrow< RegionType >::Jval, CountingJastrow< RegionType >::num_els, and CountingJastrow< RegionType >::num_regions.
Referenced by CountingJastrow< RegionType >::evalGrad(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateLog(), and CountingJastrow< RegionType >::recompute().
|
inline |
Definition at line 288 of file CountingJastrow.h.
References qmcplusplus::app_log(), Matrix< T, Alloc >::begin(), CountingJastrow< RegionType >::C, copy(), Matrix< T, Alloc >::end(), CountingJastrow< RegionType >::FCgrad, CountingJastrow< RegionType >::FClap, CountingJastrow< RegionType >::FCsum, CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jlap, and CountingJastrow< RegionType >::Jval.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), and CountingJastrow< RegionType >::evaluateExponents().
|
inlineoverridevirtual |
evaluate the value of the WaveFunctionComponent from scratch
[in] | P | active ParticleSet |
[out] | G | Gradients, ![]() |
[out] | L | Laplacians, ![]() |
Mainly for walker-by-walker move. The initial stage of particle-by-particle move also uses this. causes complete state update in WFC's
Implements WaveFunctionComponent.
Definition at line 221 of file CountingJastrow.h.
References CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jlap, CountingJastrow< RegionType >::Jval, WaveFunctionComponent::log_value_, and CountingJastrow< RegionType >::num_els.
Referenced by CountingJastrow< RegionType >::registerData(), qmcplusplus::TEST_CASE(), and CountingJastrow< RegionType >::updateBuffer().
|
inline |
Definition at line 310 of file CountingJastrow.h.
References qmcplusplus::app_log(), CountingJastrow< RegionType >::C, CountingJastrow< RegionType >::debug, CountingJastrow< RegionType >::debug_period, CountingJastrow< RegionType >::debug_seqlen, qmcplusplus::dot(), CountingJastrow< RegionType >::evaluateTempExponents_print(), CountingJastrow< RegionType >::F, CountingJastrow< RegionType >::FCgrad, CountingJastrow< RegionType >::FCgrad_t, CountingJastrow< RegionType >::FClap_t, CountingJastrow< RegionType >::FCsum_t, I, qmcplusplus::Units::energy::J, CountingJastrow< RegionType >::Jgrad_t, CountingJastrow< RegionType >::Jlap_t, CountingJastrow< RegionType >::Jval_t, CountingJastrow< RegionType >::num_els, and CountingJastrow< RegionType >::num_regions.
Referenced by CountingJastrow< RegionType >::ratio(), and CountingJastrow< RegionType >::ratioGrad().
|
inline |
Definition at line 360 of file CountingJastrow.h.
References qmcplusplus::app_log(), CountingJastrow< RegionType >::C, copy(), CountingJastrow< RegionType >::FCgrad_t, CountingJastrow< RegionType >::FClap_t, CountingJastrow< RegionType >::FCsum_t, CountingJastrow< RegionType >::Jgrad_t, CountingJastrow< RegionType >::Jlap_t, and CountingJastrow< RegionType >::Jval_t.
Referenced by CountingJastrow< RegionType >::evaluateTempExponents().
|
inlineoverridevirtual |
extract underlying OptimizableObject references
opt_obj_refs | aggregated list of optimizable object references |
Reimplemented from WaveFunctionComponent.
Definition at line 108 of file CountingJastrow.h.
References UniqueOptObjRefs::push_back().
|
inlineoverridevirtual |
return class name
Implements WaveFunctionComponent.
Definition at line 104 of file CountingJastrow.h.
|
inline |
Definition at line 150 of file CountingJastrow.h.
References APP_ABORT, CountingJastrow< RegionType >::C, CountingJastrow< RegionType >::dCFCggsum, CountingJastrow< RegionType >::dCggsum, CountingJastrow< RegionType >::dClapsum, CountingJastrow< RegionType >::dCsum, CountingJastrow< RegionType >::F, CountingJastrow< RegionType >::FCggsum, CountingJastrow< RegionType >::FCgrad, CountingJastrow< RegionType >::FCgrad_t, CountingJastrow< RegionType >::FClap, CountingJastrow< RegionType >::FClap_t, CountingJastrow< RegionType >::FClapsum, CountingJastrow< RegionType >::FCsum, CountingJastrow< RegionType >::FCsum_t, I, VariableSet::insert(), qmcplusplus::Units::energy::J, CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jgrad_t, CountingJastrow< RegionType >::Jlap, CountingJastrow< RegionType >::Jlap_t, WaveFunctionComponent::myVars, CountingJastrow< RegionType >::num_els, CountingJastrow< RegionType >::num_regions, CountingJastrow< RegionType >::opt_F, CountingJastrow< RegionType >::OPT_F, CountingJastrow< RegionType >::opt_id, CountingJastrow< RegionType >::opt_index, VariableSet::resetIndex(), Matrix< T, Alloc >::resize(), and Matrix< T, Alloc >::size().
|
inlineoverridevirtual |
if true, this contains optimizable components
Reimplemented from WaveFunctionComponent.
Definition at line 106 of file CountingJastrow.h.
References CountingJastrow< RegionType >::opt_C, and CountingJastrow< RegionType >::opt_F.
|
inlineoverridevirtual |
make clone
tqp | target Quantum ParticleSet |
deepcopy | if true, make a decopy |
If not true, return a proxy class
Reimplemented from WaveFunctionComponent.
Definition at line 467 of file CountingJastrow.h.
References CountingJastrow< RegionType >::C, CountingJastrow< RegionType >::debug, CountingJastrow< RegionType >::debug_period, CountingJastrow< RegionType >::debug_seqlen, CountingJastrow< RegionType >::F, CountingJastrow< RegionType >::opt_C, and CountingJastrow< RegionType >::opt_F.
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
evaluate the ratio of the new to old WaveFunctionComponent value
P | the active ParticleSet |
iat | the index of a particle |
Specialized for particle-by-particle move
Implements WaveFunctionComponent.
Definition at line 418 of file CountingJastrow.h.
References CountingJastrow< RegionType >::evaluateTempExponents(), qmcplusplus::exp(), CountingJastrow< RegionType >::Jval, and CountingJastrow< RegionType >::Jval_t.
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
evaluate the ratio of the new to old WaveFunctionComponent value and the new gradient
P | the active ParticleSet |
iat | the index of a particle |
grad_iat | Gradient for the active particle |
Reimplemented from WaveFunctionComponent.
Definition at line 388 of file CountingJastrow.h.
References CountingJastrow< RegionType >::evaluateTempExponents(), qmcplusplus::exp(), CountingJastrow< RegionType >::Jgrad_t, CountingJastrow< RegionType >::Jval, and CountingJastrow< RegionType >::Jval_t.
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
recompute the value of the WaveFunctionComponents which require critical accuracy.
needed for Slater Determinants but not needed for most types of WaveFunctionComponents
Reimplemented from WaveFunctionComponent.
Definition at line 236 of file CountingJastrow.h.
References CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::Jval, and WaveFunctionComponent::log_value_.
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
For particle-by-particle move.
Requests space in the buffer based on the data type sizes of the objects in this class.
P | particle set |
buf | Anonymous storage |
Implements WaveFunctionComponent.
Definition at line 424 of file CountingJastrow.h.
References PooledMemory< T_scalar, Alloc >::add(), PooledMemory< T_scalar, Alloc >::current(), DEBUG_PSIBUFFER, QMCTraits::DIM, CountingJastrow< RegionType >::evaluateLog(), ParticleSet::G, CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jlap, CountingJastrow< RegionType >::Jval, and ParticleSet::L.
|
inlineoverridevirtual |
print the state, e.g., optimizables
Reimplemented from OptimizableObject.
Definition at line 204 of file CountingJastrow.h.
References CountingJastrow< RegionType >::C, CountingJastrow< RegionType >::debug, CountingJastrow< RegionType >::debug_period, CountingJastrow< RegionType >::debug_seqlen, WaveFunctionComponent::myVars, CountingJastrow< RegionType >::num_regions, VariableSet::print(), and VariableSet::size_of_active().
|
inlineoverridevirtual |
reset the parameters during optimizations.
Exclusive, see checkInVariablesExclusive
Implements OptimizableObject.
Definition at line 123 of file CountingJastrow.h.
References CountingJastrow< RegionType >::C, CountingJastrow< RegionType >::F, VariableSet::getIndex(), VariableSet::getLoc(), WaveFunctionComponent::myVars, CountingJastrow< RegionType >::num_regions, CountingJastrow< RegionType >::OPT_F, CountingJastrow< RegionType >::opt_id, CountingJastrow< RegionType >::opt_index, VariableSet::size(), and VariableSet::where().
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
If a move for iat-th particle is rejected, restore to the content.
iat | index of the particle whose new position was proposed |
Ye: hopefully we can gradually move away from restore
Implements WaveFunctionComponent.
Definition at line 416 of file CountingJastrow.h.
References CountingJastrow< RegionType >::C.
|
inlineoverridevirtual |
For particle-by-particle move.
Put the objects of this class in the walker buffer or forward the memory cursor.
P | particle set |
buf | Anonymous storage |
fromscratch | request recomputing the precision critical pieces of wavefunction from scratch |
Implements WaveFunctionComponent.
Definition at line 438 of file CountingJastrow.h.
References PooledMemory< T_scalar, Alloc >::current(), DEBUG_PSIBUFFER, QMCTraits::DIM, CountingJastrow< RegionType >::evaluateLog(), ParticleSet::G, CountingJastrow< RegionType >::Jgrad, CountingJastrow< RegionType >::Jlap, CountingJastrow< RegionType >::Jval, ParticleSet::L, and PooledMemory< T_scalar, Alloc >::put().
|
protected |
Definition at line 40 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::checkInVariablesExclusive(), CountingJastrow< RegionType >::checkOutVariables(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateExponents_print(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::evaluateTempExponents_print(), CountingJastrow< RegionType >::initialize(), CountingJastrow< RegionType >::makeClone(), CountingJastrow< RegionType >::reportStatus(), CountingJastrow< RegionType >::resetParametersExclusive(), and CountingJastrow< RegionType >::restore().
|
protected |
Definition at line 76 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), and CountingJastrow< RegionType >::initialize().
Definition at line 73 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 77 of file CountingJastrow.h.
Definition at line 74 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), and CountingJastrow< RegionType >::initialize().
Definition at line 72 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 75 of file CountingJastrow.h.
|
protected |
Definition at line 32 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::addDebug(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::makeClone(), and CountingJastrow< RegionType >::reportStatus().
|
protected |
Definition at line 34 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::addDebug(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::makeClone(), and CountingJastrow< RegionType >::reportStatus().
|
protected |
Definition at line 33 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::addDebug(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::makeClone(), and CountingJastrow< RegionType >::reportStatus().
Definition at line 37 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::initialize(), CountingJastrow< RegionType >::makeClone(), and CountingJastrow< RegionType >::resetParametersExclusive().
|
protected |
Definition at line 53 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), and CountingJastrow< RegionType >::initialize().
Definition at line 49 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateExponents_print(), CountingJastrow< RegionType >::evaluateTempExponents(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 58 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::evaluateTempExponents_print(), and CountingJastrow< RegionType >::initialize().
Definition at line 50 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateExponents_print(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 59 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::evaluateTempExponents_print(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 54 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 48 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateExponents_print(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 57 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::evaluateTempExponents_print(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 63 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::copyFromBuffer(), CountingJastrow< RegionType >::evalGrad(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateExponents_print(), CountingJastrow< RegionType >::evaluateLog(), CountingJastrow< RegionType >::initialize(), CountingJastrow< RegionType >::registerData(), and CountingJastrow< RegionType >::updateBuffer().
|
protected |
Definition at line 68 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::evaluateTempExponents_print(), CountingJastrow< RegionType >::initialize(), and CountingJastrow< RegionType >::ratioGrad().
|
protected |
Definition at line 64 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::copyFromBuffer(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateExponents_print(), CountingJastrow< RegionType >::evaluateLog(), CountingJastrow< RegionType >::initialize(), CountingJastrow< RegionType >::registerData(), and CountingJastrow< RegionType >::updateBuffer().
|
protected |
Definition at line 69 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::evaluateTempExponents_print(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 62 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::copyFromBuffer(), CountingJastrow< RegionType >::evalGrad(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateExponents_print(), CountingJastrow< RegionType >::evaluateLog(), CountingJastrow< RegionType >::ratio(), CountingJastrow< RegionType >::ratioGrad(), CountingJastrow< RegionType >::recompute(), CountingJastrow< RegionType >::registerData(), and CountingJastrow< RegionType >::updateBuffer().
|
protected |
Definition at line 67 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::evaluateTempExponents_print(), CountingJastrow< RegionType >::ratio(), and CountingJastrow< RegionType >::ratioGrad().
|
protected |
Definition at line 27 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::CountingJastrow(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateLog(), CountingJastrow< RegionType >::evaluateTempExponents(), and CountingJastrow< RegionType >::initialize().
|
protected |
Definition at line 29 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::acceptMove(), CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::evaluateExponents(), CountingJastrow< RegionType >::evaluateTempExponents(), CountingJastrow< RegionType >::initialize(), CountingJastrow< RegionType >::reportStatus(), and CountingJastrow< RegionType >::resetParametersExclusive().
|
protected |
Definition at line 45 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::isOptimizable(), and CountingJastrow< RegionType >::makeClone().
|
protected |
Definition at line 43 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::initialize(), CountingJastrow< RegionType >::isOptimizable(), and CountingJastrow< RegionType >::makeClone().
|
protected |
Definition at line 88 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::initialize(), and CountingJastrow< RegionType >::resetParametersExclusive().
|
protected |
Definition at line 87 of file CountingJastrow.h.
Referenced by CountingJastrow< RegionType >::evaluateDerivatives(), CountingJastrow< RegionType >::initialize(), and CountingJastrow< RegionType >::resetParametersExclusive().