![]() |
QMCPACK
|
Pade function of
. More...
Inheritance diagram for Pade2ndOrderFunctor< T >:
Collaboration diagram for Pade2ndOrderFunctor< T >:Public Member Functions | |
| Pade2ndOrderFunctor (const std::string &my_name, real_type a=1.0, real_type b=1.0, real_type c=1.0) | |
| constructor More... | |
| OptimizableFunctorBase * | makeClone () const override |
| create a clone of this object More... | |
| void | reset () override |
| reset the internal variables. More... | |
| real_type | evaluate (real_type r) const |
| real_type | evaluate (real_type r, real_type &dudr, real_type &d2udr2) const |
| evaluate the value at r More... | |
| real_type | evaluate (real_type r, real_type &dudr, real_type &d2udr2, real_type &d3udr3) const |
| real_type | evaluateV (const int iat, const int iStart, const int iEnd, const T *restrict _distArray, T *restrict distArrayCompressed) const |
| void | evaluateVGL (const int iat, const int iStart, const int iEnd, const T *distArray, T *restrict valArray, T *restrict gradArray, T *restrict laplArray, T *restrict distArrayCompressed, int *restrict distIndices) const |
| real_type | f (real_type r) override |
| evaluate the value at r More... | |
| real_type | df (real_type r) override |
| evaluate the first derivative More... | |
| bool | evaluateDerivatives (real_type r, std::vector< TinyVector< real_type, 3 >> &derivs) override |
| bool | evaluateDerivatives (real_type r, std::vector< real_type > &derivs) override |
| bool | put (xmlNodePtr cur) override |
| process input xml node More... | |
| void | checkInVariablesExclusive (opt_variables_type &active) override |
| 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... | |
Public Member Functions inherited from OptimizableFunctorBase | |
| OptimizableFunctorBase (const std::string &name="") | |
| default constructor More... | |
| virtual | ~OptimizableFunctorBase ()=default |
| virtual destrutor More... | |
| void | getIndex (const opt_variables_type &active) |
| virtual void | setDensity (real_type n) |
| empty virtual function to help builder classes More... | |
| virtual void | setCusp (real_type cusp) |
| empty virtual function to help builder classes More... | |
| virtual void | setPeriodic (bool periodic) |
| empty virtual function to help builder classes More... | |
| virtual void | setGridManager (bool willmanage) |
| virtual void | checkInVariablesExclusive (opt_variables_type &active)=0 |
| check in variational parameters to the global list of parameters used by the optimizer. More... | |
| virtual void | resetParametersExclusive (const opt_variables_type &active)=0 |
| reset the parameters during optimizations More... | |
Public Member Functions inherited from OptimizableObject | |
| OptimizableObject (const std::string &name) | |
| const std::string & | getName () const |
| bool | isOptimized () const |
| virtual void | reportStatus (std::ostream &os) |
| print the state, e.g., optimizables More... | |
| 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... | |
Static Public Member Functions | |
| static void | mw_evaluateV (const int num_groups, const Pade2ndOrderFunctor *const functors[], const int n_src, const int *grp_ids, const int num_pairs, const int *ref_at, const T *mw_dist, const int dist_stride, T *mw_vals, Vector< char, OffloadPinnedAllocator< char >> &transfer_buffer) |
| evaluate sum of the pair potentials FIXME More... | |
Public Attributes | |
| real_type | A |
| coefficients More... | |
| real_type | B |
| real_type | C |
| real_type | C2 |
| bool | Opt_A |
| bool | Opt_B |
| bool | Opt_C |
| std::string | ID_A |
| id for A More... | |
| std::string | ID_B |
| id for B More... | |
| std::string | ID_C |
| id for C More... | |
Public Attributes inherited from OptimizableFunctorBase | |
| real_type | cutoff_radius = 0.0 |
| maximum cutoff More... | |
| opt_variables_type | myVars |
| set of variables to be optimized More... | |
Additional Inherited Members | |
Public Types inherited from OptimizableFunctorBase | |
| using | real_type = optimize::VariableSet::real_type |
| typedef for real values More... | |
| using | opt_variables_type = optimize::VariableSet |
| typedef for variableset: this is going to be replaced More... | |
Pade function of
.
Prototype of the template parameter of TwoBodyJastrow and OneBodyJastrow
Definition at line 324 of file PadeFunctors.h.
|
inline |
constructor
Definition at line 337 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::reset().
Referenced by Pade2ndOrderFunctor< T >::makeClone().
|
inlineoverridevirtual |
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 591 of file PadeFunctors.h.
References VariableSet::insertFrom(), and OptimizableFunctorBase::myVars.
|
inlineoverridevirtual |
check out variational optimizable variables
| active | a super set of optimizable variables |
Implements OptimizableFunctorBase.
Definition at line 593 of file PadeFunctors.h.
References VariableSet::getIndex(), and OptimizableFunctorBase::myVars.
evaluate the first derivative
| r | distance |
virtual function necessary for a transformation to a numerical functor
Implements OptimizableFunctorBase.
Definition at line 452 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::evaluate().
| r | the distance |
Definition at line 357 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::A, Pade2ndOrderFunctor< T >::B, and Pade2ndOrderFunctor< T >::C.
Referenced by Pade2ndOrderFunctor< T >::df(), Pade2ndOrderFunctor< T >::evaluateV(), Pade2ndOrderFunctor< T >::evaluateVGL(), Pade2ndOrderFunctor< T >::f(), and qmcplusplus::TEST_CASE().
evaluate the value at r
| r | the distance |
| dudr | return value |
| d2udr2 | return value |
Definition at line 370 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::A, Pade2ndOrderFunctor< T >::B, Pade2ndOrderFunctor< T >::C, and Pade2ndOrderFunctor< T >::C2.
|
inline |
Definition at line 380 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::A, Pade2ndOrderFunctor< T >::B, Pade2ndOrderFunctor< T >::C, and Pade2ndOrderFunctor< T >::C2.
|
inlineoverridevirtual |
Reimplemented from OptimizableFunctorBase.
Definition at line 459 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::A, Pade2ndOrderFunctor< T >::B, Pade2ndOrderFunctor< T >::C, Pade2ndOrderFunctor< T >::Opt_A, Pade2ndOrderFunctor< T >::Opt_B, and Pade2ndOrderFunctor< T >::Opt_C.
Reimplemented from OptimizableFunctorBase.
Definition at line 493 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::A, Pade2ndOrderFunctor< T >::B, Pade2ndOrderFunctor< T >::C, Pade2ndOrderFunctor< T >::Opt_A, Pade2ndOrderFunctor< T >::Opt_B, and Pade2ndOrderFunctor< T >::Opt_C.
|
inline |
Definition at line 391 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::evaluate().
|
inline |
Definition at line 431 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::evaluate().
evaluate the value at r
| r | distance |
virtual function necessary for a transformation to a numerical functor
Implements OptimizableFunctorBase.
Definition at line 450 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::evaluate().
|
inlineoverridevirtual |
create a clone of this object
Implements OptimizableFunctorBase.
Definition at line 343 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::Pade2ndOrderFunctor().
|
inlinestatic |
evaluate sum of the pair potentials FIXME
for r_j < cutoff_radius Definition at line 407 of file PadeFunctors.h.
|
inlineoverridevirtual |
process input xml node
| cur | current xmlNode from which the data members are reset |
Read in the Pade parameters from the xml input file.
Implements OptimizableFunctorBase.
Definition at line 521 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::A, OhmmsAttributeSet::add(), qmcplusplus::app_log(), Pade2ndOrderFunctor< T >::B, Pade2ndOrderFunctor< T >::C, VariableSet::clear(), Pade2ndOrderFunctor< T >::ID_A, Pade2ndOrderFunctor< T >::ID_B, Pade2ndOrderFunctor< T >::ID_C, VariableSet::insert(), optimize::LOGLINEAR_P, OptimizableFunctorBase::myVars, Pade2ndOrderFunctor< T >::Opt_A, Pade2ndOrderFunctor< T >::Opt_B, Pade2ndOrderFunctor< T >::Opt_C, optimize::OTHER_P, VariableSet::print(), OhmmsAttributeSet::put(), putContent(), and Pade2ndOrderFunctor< T >::reset().
|
inlineoverridevirtual |
reset the internal variables.
Implements OptimizableFunctorBase.
Definition at line 347 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::C, Pade2ndOrderFunctor< T >::C2, and OptimizableFunctorBase::cutoff_radius.
Referenced by Pade2ndOrderFunctor< T >::Pade2ndOrderFunctor(), Pade2ndOrderFunctor< T >::put(), and qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
reset the parameters during optimizations.
Exclusive, see checkInVariablesExclusive
Implements OptimizableObject.
Definition at line 594 of file PadeFunctors.h.
References Pade2ndOrderFunctor< T >::A, Pade2ndOrderFunctor< T >::B, Pade2ndOrderFunctor< T >::C, Pade2ndOrderFunctor< T >::C2, Pade2ndOrderFunctor< T >::ID_A, Pade2ndOrderFunctor< T >::ID_B, Pade2ndOrderFunctor< T >::ID_C, OptimizableFunctorBase::myVars, and VariableSet::where().
coefficients
Definition at line 327 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::evaluate(), Pade2ndOrderFunctor< T >::evaluateDerivatives(), Pade2ndOrderFunctor< T >::put(), Pade2ndOrderFunctor< T >::resetParametersExclusive(), and qmcplusplus::TEST_CASE().
Definition at line 327 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::evaluate(), Pade2ndOrderFunctor< T >::evaluateDerivatives(), Pade2ndOrderFunctor< T >::put(), Pade2ndOrderFunctor< T >::resetParametersExclusive(), and qmcplusplus::TEST_CASE().
| real_type C2 |
Definition at line 327 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::evaluate(), Pade2ndOrderFunctor< T >::reset(), and Pade2ndOrderFunctor< T >::resetParametersExclusive().
| std::string ID_A |
id for A
Definition at line 330 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::put(), and Pade2ndOrderFunctor< T >::resetParametersExclusive().
| std::string ID_B |
id for B
Definition at line 332 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::put(), and Pade2ndOrderFunctor< T >::resetParametersExclusive().
| std::string ID_C |
id for C
Definition at line 334 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::put(), and Pade2ndOrderFunctor< T >::resetParametersExclusive().
| bool Opt_A |
Definition at line 328 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::evaluateDerivatives(), and Pade2ndOrderFunctor< T >::put().
| bool Opt_B |
Definition at line 328 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::evaluateDerivatives(), and Pade2ndOrderFunctor< T >::put().
| bool Opt_C |
Definition at line 328 of file PadeFunctors.h.
Referenced by Pade2ndOrderFunctor< T >::evaluateDerivatives(), and Pade2ndOrderFunctor< T >::put().