![]() |
QMCPACK
|
Classes | |
struct | BasicGaussian |
Public Types | |
using | value_type = T |
![]() | |
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... | |
Public Member Functions | |
GaussianTimesRN (const char *node_name="radfunc", const char *exp_name="exponent", const char *c_name="contraction", const char *p_name="power") | |
~GaussianTimesRN () override | |
OptimizableFunctorBase * | makeClone () const override |
create a clone of this object More... | |
void | reset () override |
reset function 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... | |
int | size () const |
return the number Gaussians More... | |
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... | |
real_type | evaluate (real_type r, real_type rinv) |
void | evaluateAll (real_type r, real_type rinv) |
bool | put (xmlNodePtr cur) override |
process xmlnode and registers variables to optimize More... | |
bool | putBasisGroup (xmlNodePtr cur, int baseOff=0) |
process cur xmlnode 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 | 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 bool | evaluateDerivatives (real_type r, std::vector< qmcplusplus::TinyVector< real_type, 3 >> &derivs) |
virtual bool | evaluateDerivatives (real_type r, std::vector< real_type > &derivs) |
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... | |
Public Attributes | |
real_type | Y |
real_type | dY |
real_type | d2Y |
int | basePower |
std::string | nodeName |
std::string | expName |
std::string | coeffName |
std::string | powerName |
std::vector< xmlNodePtr > | InParam |
std::vector< BasicGaussian > | gset |
![]() | |
real_type | cutoff_radius = 0.0 |
maximum cutoff More... | |
opt_variables_type | myVars |
set of variables to be optimized More... | |
Definition at line 26 of file GaussianTimesRN.h.
using value_type = T |
Definition at line 28 of file GaussianTimesRN.h.
|
inlineexplicit |
Definition at line 112 of file GaussianTimesRN.h.
|
inlineoverride |
Definition at line 119 of file GaussianTimesRN.h.
|
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 125 of file GaussianTimesRN.h.
|
inlineoverridevirtual |
check out variational optimizable variables
active | a super set of optimizable variables |
Implements OptimizableFunctorBase.
Definition at line 126 of file GaussianTimesRN.h.
evaluate the first derivative
r | distance |
virtual function necessary for a transformation to a numerical functor
Implements OptimizableFunctorBase.
Definition at line 150 of file GaussianTimesRN.h.
References GaussianTimesRN< T >::gset.
Definition at line 164 of file GaussianTimesRN.h.
References GaussianTimesRN< T >::gset, and GaussianTimesRN< T >::Y.
Definition at line 177 of file GaussianTimesRN.h.
References GaussianTimesRN< T >::d2Y, GaussianTimesRN< T >::dY, GaussianTimesRN< T >::gset, and GaussianTimesRN< T >::Y.
evaluate the value at r
r | distance |
virtual function necessary for a transformation to a numerical functor
Implements OptimizableFunctorBase.
Definition at line 136 of file GaussianTimesRN.h.
References GaussianTimesRN< T >::gset.
|
inlineoverridevirtual |
create a clone of this object
Implements OptimizableFunctorBase.
Definition at line 121 of file GaussianTimesRN.h.
|
overridevirtual |
process xmlnode and registers variables to optimize
cur | xmlNode for a functor |
Implements OptimizableFunctorBase.
Definition at line 201 of file GaussianTimesRN.h.
bool putBasisGroup | ( | xmlNodePtr | cur, |
int | baseOff = 0 |
||
) |
process cur xmlnode
cur | root node |
baseOff | offset to the basePower |
Definition at line 238 of file GaussianTimesRN.h.
References getXMLAttributeValue().
Referenced by ECPComponentBuilder::createVrWithBasisGroup().
|
overridevirtual |
reset function
Implements OptimizableFunctorBase.
Definition at line 208 of file GaussianTimesRN.h.
References OhmmsAttributeSet::add(), qmcplusplus::n, and OhmmsAttributeSet::put().
|
inlineoverridevirtual |
reset the parameters during optimizations.
Exclusive, see checkInVariablesExclusive
DO NOTHING FOR NOW
Implements OptimizableObject.
Definition at line 127 of file GaussianTimesRN.h.
|
inline |
return the number Gaussians
Definition at line 134 of file GaussianTimesRN.h.
References GaussianTimesRN< T >::gset.
int basePower |
Definition at line 104 of file GaussianTimesRN.h.
std::string coeffName |
Definition at line 107 of file GaussianTimesRN.h.
real_type d2Y |
Definition at line 29 of file GaussianTimesRN.h.
Referenced by GaussianTimesRN< T >::evaluateAll().
real_type dY |
Definition at line 29 of file GaussianTimesRN.h.
Referenced by GaussianTimesRN< T >::evaluateAll().
std::string expName |
Definition at line 106 of file GaussianTimesRN.h.
std::vector<BasicGaussian> gset |
Definition at line 110 of file GaussianTimesRN.h.
Referenced by GaussianTimesRN< T >::df(), GaussianTimesRN< T >::evaluate(), GaussianTimesRN< T >::evaluateAll(), GaussianTimesRN< T >::f(), and GaussianTimesRN< T >::size().
std::vector<xmlNodePtr> InParam |
Definition at line 109 of file GaussianTimesRN.h.
std::string nodeName |
Definition at line 105 of file GaussianTimesRN.h.
std::string powerName |
Definition at line 108 of file GaussianTimesRN.h.
Definition at line 29 of file GaussianTimesRN.h.
Referenced by GaussianTimesRN< T >::evaluate(), and GaussianTimesRN< T >::evaluateAll().