![]() |
QMCPACK
|
Implements a Pade Function .
More...
Public Member Functions | |
PadeFunctor (const std::string &my_name) | |
default constructor More... | |
void | setCusp (real_type cusp) override |
empty virtual function to help builder classes More... | |
OptimizableFunctorBase * | makeClone () const override |
create a clone of this object More... | |
void | reset () override |
reset function More... | |
real_type | evaluate (real_type r) const |
real_type | evaluate (real_type r, real_type &dudr, real_type &d2udr2) const |
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 |
compute derivatives with respect to A and B More... | |
bool | evaluateDerivatives (real_type r, std::vector< real_type > &derivs) override |
compute derivatives with respect to A and B More... | |
bool | put (xmlNodePtr cur) override |
process xmlnode and registers variables to optimize 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... | |
![]() | |
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 | 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... | |
![]() | |
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 PadeFunctor *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... | |
static void | mw_evaluateVGL (const int iat, const int num_groups, const PadeFunctor *const functors[], const int n_src, const int *grp_ids, const int nw, T *mw_vgl, const int n_padded, const T *mw_dist, T *mw_cur_allu, Vector< char, OffloadPinnedAllocator< char >> &transfer_buffer) |
static void | mw_updateVGL (const int iat, const std::vector< bool > &isAccepted, const int num_groups, const PadeFunctor *const functors[], const int n_src, const int *grp_ids, const int nw, T *mw_vgl, const int n_padded, const T *mw_dist, T *mw_allUat, T *mw_cur_allu, Vector< char, OffloadPinnedAllocator< char >> &transfer_buffer) |
Public Attributes | |
bool | Opt_A |
true, if A is optimizable More... | |
bool | Opt_B |
true, if B is optimizable More... | |
real_type | A |
input A More... | |
real_type | B0 |
input B More... | |
real_type | Scale |
input scaling, default=1.0 More... | |
real_type | B |
B=B0*Scale. More... | |
real_type | AB |
AB=A*B. More... | |
real_type | B2 |
B2=2*B. More... | |
real_type | AoverB |
AoverB=A/B. More... | |
std::string | ID_A |
id of A More... | |
std::string | ID_B |
id of B More... | |
![]() | |
real_type | cutoff_radius = 0.0 |
maximum cutoff More... | |
opt_variables_type | myVars |
set of variables to be optimized More... | |
Additional Inherited Members | |
![]() | |
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... | |
Implements a Pade Function .
Similar to PadeJastrow with a scale.
Definition at line 38 of file PadeFunctors.h.
|
inline |
default constructor
Definition at line 64 of file PadeFunctors.h.
References PadeFunctor< T >::reset().
Referenced by PadeFunctor< 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 290 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 295 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 184 of file PadeFunctors.h.
References PadeFunctor< T >::evaluate().
Definition at line 89 of file PadeFunctors.h.
References PadeFunctor< T >::A, PadeFunctor< T >::AoverB, and PadeFunctor< T >::B.
Referenced by PadeFunctor< T >::df(), PadeFunctor< T >::evaluateV(), PadeFunctor< T >::evaluateVGL(), PadeFunctor< T >::f(), and qmcplusplus::TEST_CASE().
Definition at line 91 of file PadeFunctors.h.
References PadeFunctor< T >::A, PadeFunctor< T >::AoverB, PadeFunctor< T >::B, and PadeFunctor< T >::B2.
|
inline |
Definition at line 99 of file PadeFunctors.h.
References PadeFunctor< T >::A, PadeFunctor< T >::AoverB, PadeFunctor< T >::B, and PadeFunctor< T >::B2.
|
inlineoverridevirtual |
compute derivatives with respect to A and B
Reimplemented from OptimizableFunctorBase.
Definition at line 209 of file PadeFunctors.h.
References PadeFunctor< T >::A, PadeFunctor< T >::AoverB, PadeFunctor< T >::B, PadeFunctor< T >::B2, PadeFunctor< T >::Opt_A, and PadeFunctor< T >::Opt_B.
compute derivatives with respect to A and B
Reimplemented from OptimizableFunctorBase.
Definition at line 230 of file PadeFunctors.h.
References PadeFunctor< T >::A, PadeFunctor< T >::AoverB, PadeFunctor< T >::B, PadeFunctor< T >::Opt_A, and PadeFunctor< T >::Opt_B.
|
inline |
Definition at line 108 of file PadeFunctors.h.
References PadeFunctor< T >::evaluate().
|
inline |
Definition at line 148 of file PadeFunctors.h.
References PadeFunctor< T >::evaluate().
evaluate the value at r
r | distance |
virtual function necessary for a transformation to a numerical functor
Implements OptimizableFunctorBase.
Definition at line 182 of file PadeFunctors.h.
References PadeFunctor< T >::AoverB, and PadeFunctor< T >::evaluate().
|
inlineoverridevirtual |
create a clone of this object
Implements OptimizableFunctorBase.
Definition at line 77 of file PadeFunctors.h.
References PadeFunctor< T >::PadeFunctor().
|
inlinestatic |
evaluate sum of the pair potentials FIXME
Definition at line 124 of file PadeFunctors.h.
|
inlinestatic |
Definition at line 167 of file PadeFunctors.h.
|
inlinestatic |
Definition at line 191 of file PadeFunctors.h.
|
inlineoverridevirtual |
process xmlnode and registers variables to optimize
cur | xmlNode for a functor |
Implements OptimizableFunctorBase.
Definition at line 246 of file PadeFunctors.h.
References PadeFunctor< T >::A, OhmmsAttributeSet::add(), qmcplusplus::app_log(), PadeFunctor< T >::B0, VariableSet::clear(), PadeFunctor< T >::ID_A, PadeFunctor< T >::ID_B, VariableSet::insert(), optimize::LOGLINEAR_P, OptimizableFunctorBase::myVars, PadeFunctor< T >::Opt_A, PadeFunctor< T >::Opt_B, optimize::OTHER_P, VariableSet::print(), OhmmsAttributeSet::put(), putContent(), and PadeFunctor< T >::reset().
|
inlineoverridevirtual |
reset function
Implements OptimizableFunctorBase.
Definition at line 79 of file PadeFunctors.h.
References PadeFunctor< T >::A, PadeFunctor< T >::AB, PadeFunctor< T >::AoverB, PadeFunctor< T >::B, PadeFunctor< T >::B0, PadeFunctor< T >::B2, OptimizableFunctorBase::cutoff_radius, and PadeFunctor< T >::Scale.
Referenced by PadeFunctor< T >::PadeFunctor(), PadeFunctor< T >::put(), PadeFunctor< T >::resetParametersExclusive(), and PadeFunctor< T >::setCusp().
|
inlineoverridevirtual |
reset the parameters during optimizations.
Exclusive, see checkInVariablesExclusive
Implements OptimizableObject.
Definition at line 300 of file PadeFunctors.h.
References PadeFunctor< T >::A, PadeFunctor< T >::B0, OptimizableFunctorBase::myVars, PadeFunctor< T >::Opt_A, PadeFunctor< T >::Opt_B, PadeFunctor< T >::reset(), VariableSet::size(), and VariableSet::where().
|
inlineoverridevirtual |
empty virtual function to help builder classes
Reimplemented from OptimizableFunctorBase.
Definition at line 70 of file PadeFunctors.h.
References PadeFunctor< T >::A, PadeFunctor< T >::Opt_A, and PadeFunctor< T >::reset().
Referenced by qmcplusplus::TEST_CASE().
input A
Definition at line 45 of file PadeFunctors.h.
Referenced by PadeFunctor< T >::evaluate(), PadeFunctor< T >::evaluateDerivatives(), PadeFunctor< T >::put(), PadeFunctor< T >::reset(), PadeFunctor< T >::resetParametersExclusive(), and PadeFunctor< T >::setCusp().
real_type AB |
real_type AoverB |
AoverB=A/B.
Definition at line 57 of file PadeFunctors.h.
Referenced by PadeFunctor< T >::evaluate(), PadeFunctor< T >::evaluateDerivatives(), PadeFunctor< T >::f(), and PadeFunctor< T >::reset().
B=B0*Scale.
Definition at line 51 of file PadeFunctors.h.
Referenced by PadeFunctor< T >::evaluate(), PadeFunctor< T >::evaluateDerivatives(), and PadeFunctor< T >::reset().
real_type B0 |
input B
Definition at line 47 of file PadeFunctors.h.
Referenced by PadeFunctor< T >::put(), PadeFunctor< T >::reset(), PadeFunctor< T >::resetParametersExclusive(), and qmcplusplus::TEST_CASE().
real_type B2 |
B2=2*B.
Definition at line 55 of file PadeFunctors.h.
Referenced by PadeFunctor< T >::evaluate(), PadeFunctor< T >::evaluateDerivatives(), and PadeFunctor< T >::reset().
std::string ID_A |
std::string ID_B |
bool Opt_A |
true, if A is optimizable
Definition at line 41 of file PadeFunctors.h.
Referenced by PadeFunctor< T >::evaluateDerivatives(), PadeFunctor< T >::put(), PadeFunctor< T >::resetParametersExclusive(), and PadeFunctor< T >::setCusp().
bool Opt_B |
true, if B is optimizable
Definition at line 43 of file PadeFunctors.h.
Referenced by PadeFunctor< T >::evaluateDerivatives(), PadeFunctor< T >::put(), and PadeFunctor< T >::resetParametersExclusive().
real_type Scale |
input scaling, default=1.0
Definition at line 49 of file PadeFunctors.h.
Referenced by PadeFunctor< T >::reset().