QMCPACK
PadeFunctor< T > Struct Template Reference

Implements a Pade Function $u[r]=A*r/(1+B*r)$. More...

+ Inheritance diagram for PadeFunctor< T >:
+ Collaboration diagram for PadeFunctor< T >:

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...
 
OptimizableFunctorBasemakeClone () 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...
 
- 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 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 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...
 
- 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...
 

Detailed Description

template<class T>
struct qmcplusplus::PadeFunctor< T >

Implements a Pade Function $u[r]=A*r/(1+B*r)$.

Similar to PadeJastrow with a scale.

Definition at line 38 of file PadeFunctors.h.

Constructor & Destructor Documentation

◆ PadeFunctor()

PadeFunctor ( const std::string &  my_name)
inline

default constructor

Definition at line 64 of file PadeFunctors.h.

References PadeFunctor< T >::reset().

Referenced by PadeFunctor< T >::makeClone().

65  : OptimizableFunctorBase(my_name), Opt_A(false), Opt_B(true), A(1.0), B0(1.0), Scale(1.0), ID_A("0"), ID_B("0")
66  {
67  reset();
68  }
real_type B0
input B
Definition: PadeFunctors.h:47
real_type Scale
input scaling, default=1.0
Definition: PadeFunctors.h:49
OptimizableFunctorBase(const std::string &name="")
default constructor
real_type A
input A
Definition: PadeFunctors.h:45
void reset() override
reset function
Definition: PadeFunctors.h:79
std::string ID_A
id of A
Definition: PadeFunctors.h:59
bool Opt_A
true, if A is optimizable
Definition: PadeFunctors.h:41
bool Opt_B
true, if B is optimizable
Definition: PadeFunctors.h:43
std::string ID_B
id of B
Definition: PadeFunctors.h:61

Member Function Documentation

◆ checkInVariablesExclusive()

void checkInVariablesExclusive ( opt_variables_type active)
inlineoverridevirtual

check in variational parameters to the global list of parameters used by the optimizer.

Parameters
activea 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.

291  {
292  active.insertFrom(myVars);
293  }
opt_variables_type myVars
set of variables to be optimized

◆ checkOutVariables()

void checkOutVariables ( const opt_variables_type active)
inlineoverridevirtual

check out variational optimizable variables

Parameters
activea super set of optimizable variables

Implements OptimizableFunctorBase.

Definition at line 295 of file PadeFunctors.h.

References VariableSet::getIndex(), and OptimizableFunctorBase::myVars.

296  {
297  myVars.getIndex(active);
298  }
int getIndex(const std::string &vname) const
return the Index vaule for the named parameter
opt_variables_type myVars
set of variables to be optimized

◆ df()

real_type df ( real_type  r)
inlineoverridevirtual

evaluate the first derivative

Parameters
rdistance

virtual function necessary for a transformation to a numerical functor

Implements OptimizableFunctorBase.

Definition at line 184 of file PadeFunctors.h.

References PadeFunctor< T >::evaluate().

185  {
186  real_type dudr, d2udr2;
187  real_type res = evaluate(r, dudr, d2udr2);
188  return dudr;
189  }
real_type evaluate(real_type r) const
Definition: PadeFunctors.h:89
OHMMS_PRECISION real_type

◆ evaluate() [1/3]

real_type evaluate ( real_type  r) const
inline

◆ evaluate() [2/3]

real_type evaluate ( real_type  r,
real_type dudr,
real_type d2udr2 
) const
inline

Definition at line 91 of file PadeFunctors.h.

References PadeFunctor< T >::A, PadeFunctor< T >::AoverB, PadeFunctor< T >::B, and PadeFunctor< T >::B2.

92  {
93  real_type u = 1.0 / (1.0 + B * r);
94  dudr = A * u * u;
95  d2udr2 = -B2 * dudr * u;
96  return A * u * r - AoverB;
97  }
real_type AoverB
AoverB=A/B.
Definition: PadeFunctors.h:57
real_type B
B=B0*Scale.
Definition: PadeFunctors.h:51
real_type A
input A
Definition: PadeFunctors.h:45
real_type B2
B2=2*B.
Definition: PadeFunctors.h:55
OHMMS_PRECISION real_type

◆ evaluate() [3/3]

real_type evaluate ( real_type  r,
real_type dudr,
real_type d2udr2,
real_type d3udr3 
) const
inline

Definition at line 99 of file PadeFunctors.h.

References PadeFunctor< T >::A, PadeFunctor< T >::AoverB, PadeFunctor< T >::B, and PadeFunctor< T >::B2.

100  {
101  real_type u = 1.0 / (1.0 + B * r);
102  dudr = A * u * u;
103  d2udr2 = -B2 * dudr * u;
104  d3udr3 = -3.0 * B * d2udr2 * u;
105  return A * u * r - AoverB;
106  }
real_type AoverB
AoverB=A/B.
Definition: PadeFunctors.h:57
real_type B
B=B0*Scale.
Definition: PadeFunctors.h:51
real_type A
input A
Definition: PadeFunctors.h:45
real_type B2
B2=2*B.
Definition: PadeFunctors.h:55
OHMMS_PRECISION real_type

◆ evaluateDerivatives() [1/2]

bool evaluateDerivatives ( real_type  r,
std::vector< TinyVector< real_type, 3 >> &  derivs 
)
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.

210  {
211  int i = 0;
212  real_type u = 1.0 / (1.0 + B * r);
213  if (Opt_A)
214  {
215  derivs[i][0] = r * u - 1 / B; //du/da
216  derivs[i][1] = u * u; //d(du/da)/dr
217  derivs[i][2] = -B2 * u * u * u; //d^2 (du/da)/dr
218  ++i;
219  }
220  if (Opt_B)
221  {
222  derivs[i][0] = -A * r * r * u * u + AoverB / B; //du/db
223  derivs[i][1] = -2.0 * A * r * u * u * u; //d(du/db)/dr
224  derivs[i][2] = 2.0 * A * (B2 * r - 1) * u * u * u * u; //d^2(du/db)/dr^2
225  }
226  return true;
227  }
real_type AoverB
AoverB=A/B.
Definition: PadeFunctors.h:57
real_type B
B=B0*Scale.
Definition: PadeFunctors.h:51
real_type A
input A
Definition: PadeFunctors.h:45
real_type B2
B2=2*B.
Definition: PadeFunctors.h:55
bool Opt_A
true, if A is optimizable
Definition: PadeFunctors.h:41
bool Opt_B
true, if B is optimizable
Definition: PadeFunctors.h:43
OHMMS_PRECISION real_type

◆ evaluateDerivatives() [2/2]

bool evaluateDerivatives ( real_type  r,
std::vector< real_type > &  derivs 
)
inlineoverridevirtual

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.

231  {
232  int i = 0;
233  real_type u = 1.0 / (1.0 + B * r);
234  if (Opt_A)
235  {
236  derivs[i] = r * u - 1 / B; //du/da
237  ++i;
238  }
239  if (Opt_B)
240  {
241  derivs[i] = -A * r * r * u * u + AoverB / B; //du/db
242  }
243  return true;
244  }
real_type AoverB
AoverB=A/B.
Definition: PadeFunctors.h:57
real_type B
B=B0*Scale.
Definition: PadeFunctors.h:51
real_type A
input A
Definition: PadeFunctors.h:45
bool Opt_A
true, if A is optimizable
Definition: PadeFunctors.h:41
bool Opt_B
true, if B is optimizable
Definition: PadeFunctors.h:43
OHMMS_PRECISION real_type

◆ evaluateV()

real_type evaluateV ( const int  iat,
const int  iStart,
const int  iEnd,
const T *restrict  _distArray,
T *restrict  distArrayCompressed 
) const
inline

Definition at line 108 of file PadeFunctors.h.

References PadeFunctor< T >::evaluate().

113  {
114  real_type sum(0);
115  for (int idx = iStart; idx < iEnd; idx++)
116  if (idx != iat)
117  sum += evaluate(_distArray[idx]);
118  return sum;
119  }
real_type evaluate(real_type r) const
Definition: PadeFunctors.h:89
OHMMS_PRECISION real_type

◆ evaluateVGL()

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
inline

Definition at line 148 of file PadeFunctors.h.

References PadeFunctor< T >::evaluate().

157  {
158  for (int idx = iStart; idx < iEnd; idx++)
159  {
160  valArray[idx] = evaluate(distArray[idx], gradArray[idx], laplArray[idx]);
161  gradArray[idx] /= distArray[idx];
162  }
163  if (iat >= iStart && iat < iEnd)
164  valArray[iat] = gradArray[iat] = laplArray[iat] = T(0);
165  }
real_type evaluate(real_type r) const
Definition: PadeFunctors.h:89

◆ f()

real_type f ( real_type  r)
inlineoverridevirtual

evaluate the value at r

Parameters
rdistance

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().

182 { return evaluate(r) - AoverB; }
real_type AoverB
AoverB=A/B.
Definition: PadeFunctors.h:57
real_type evaluate(real_type r) const
Definition: PadeFunctors.h:89

◆ makeClone()

OptimizableFunctorBase* makeClone ( ) const
inlineoverridevirtual

create a clone of this object

Implements OptimizableFunctorBase.

Definition at line 77 of file PadeFunctors.h.

References PadeFunctor< T >::PadeFunctor().

77 { return new PadeFunctor(*this); }
PadeFunctor(const std::string &my_name)
default constructor
Definition: PadeFunctors.h:64

◆ mw_evaluateV()

static void mw_evaluateV ( const int  num_groups,
const PadeFunctor< T > *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 
)
inlinestatic

evaluate sum of the pair potentials FIXME

Returns
$\sum u(r_j)$ for r_j < cutoff_radius

Definition at line 124 of file PadeFunctors.h.

134  {
135  for (int ip = 0; ip < num_pairs; ip++)
136  {
137  mw_vals[ip] = 0;
138  for (int j = 0; j < n_src; j++)
139  {
140  const int ig = grp_ids[j];
141  auto& functor(*functors[ig]);
142  if (j != ref_at[ip])
143  mw_vals[ip] += functor.evaluate(mw_dist[ip * dist_stride + j]);
144  }
145  }
146  }

◆ mw_evaluateVGL()

static void mw_evaluateVGL ( const int  iat,
const int  num_groups,
const PadeFunctor< T > *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 
)
inlinestatic

Definition at line 167 of file PadeFunctors.h.

178  {
179  throw std::runtime_error("PadeFunctor mw_evaluateVGL not implemented!");
180  }

◆ mw_updateVGL()

static void mw_updateVGL ( const int  iat,
const std::vector< bool > &  isAccepted,
const int  num_groups,
const PadeFunctor< T > *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 
)
inlinestatic

Definition at line 191 of file PadeFunctors.h.

204  {
205  throw std::runtime_error("PadeFunctor mw_updateVGL not implemented!");
206  }

◆ put()

bool put ( xmlNodePtr  cur)
inlineoverridevirtual

process xmlnode and registers variables to optimize

Parameters
curxmlNode 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().

247  {
248  real_type Atemp(A), Btemp(B0);
249  cur = cur->xmlChildrenNode;
250  while (cur != NULL)
251  {
252  std::string cname((const char*)(cur->name));
253  if (cname == "var") //only accept var
254  {
255  std::string id_in("0");
256  std::string p_name("B");
257  OhmmsAttributeSet rAttrib;
258  rAttrib.add(id_in, "id");
259  rAttrib.add(p_name, "name");
260  rAttrib.put(cur);
261  if (p_name == "A")
262  {
263  ID_A = id_in;
264  putContent(Atemp, cur);
265  Opt_A = true;
266  }
267  else if (p_name == "B")
268  {
269  ID_B = id_in;
270  putContent(Btemp, cur);
271  Opt_B = true;
272  }
273  }
274  cur = cur->next;
275  }
276  A = Atemp;
277  B0 = Btemp;
278  reset();
279  myVars.clear();
280  if (Opt_A)
282  if (Opt_B)
284  int left_pad_space = 5;
285  app_log() << std::endl;
286  myVars.print(app_log(), left_pad_space, true);
287  return true;
288  }
real_type B0
input B
Definition: PadeFunctors.h:47
std::ostream & app_log()
Definition: OutputManager.h:65
bool put(xmlNodePtr cur)
assign attributes to the set
Definition: AttributeSet.h:55
real_type A
input A
Definition: PadeFunctors.h:45
void reset() override
reset function
Definition: PadeFunctors.h:79
void insert(const std::string &vname, real_type v, bool enable=true, int type=OTHER_P)
Definition: VariableSet.h:133
class to handle a set of attributes of an xmlNode
Definition: AttributeSet.h:24
std::string ID_A
id of A
Definition: PadeFunctors.h:59
void clear()
clear the variable set
Definition: VariableSet.cpp:28
bool Opt_A
true, if A is optimizable
Definition: PadeFunctors.h:41
bool Opt_B
true, if B is optimizable
Definition: PadeFunctors.h:43
bool putContent(T &a, xmlNodePtr cur)
replaces a&#39;s value with the first "element" in the "string" returned by XMLNodeString{cur}.
Definition: libxmldefs.h:88
OHMMS_PRECISION real_type
void add(PDT &aparam, const std::string &aname, std::vector< PDT > candidate_values={}, TagStatus status=TagStatus::OPTIONAL)
add a new attribute
Definition: AttributeSet.h:42
void print(std::ostream &os, int leftPadSpaces=0, bool printHeader=false) const
std::string ID_B
id of B
Definition: PadeFunctors.h:61
opt_variables_type myVars
set of variables to be optimized

◆ reset()

void 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().

80  {
81  cutoff_radius = 1.0e4; //some big range
82  //A=a; B0=b; Scale=s;
83  B = B0 * Scale;
84  AB = A * B;
85  B2 = 2.0 * B;
86  AoverB = A / B;
87  }
real_type B0
input B
Definition: PadeFunctors.h:47
real_type AoverB
AoverB=A/B.
Definition: PadeFunctors.h:57
real_type Scale
input scaling, default=1.0
Definition: PadeFunctors.h:49
real_type B
B=B0*Scale.
Definition: PadeFunctors.h:51
real_type A
input A
Definition: PadeFunctors.h:45
real_type B2
B2=2*B.
Definition: PadeFunctors.h:55
real_type AB
AB=A*B.
Definition: PadeFunctors.h:53

◆ resetParametersExclusive()

void resetParametersExclusive ( const opt_variables_type active)
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().

301  {
302  if (myVars.size())
303  {
304  int ia = myVars.where(0);
305  if (ia > -1)
306  {
307  int i = 0;
308  if (Opt_A)
309  A = std::real(myVars[i++] = active[ia++]);
310  if (Opt_B)
311  B0 = std::real(myVars[i] = active[ia]);
312  }
313  reset();
314  }
315  }
real_type B0
input B
Definition: PadeFunctors.h:47
QMCTraits::RealType real
real_type A
input A
Definition: PadeFunctors.h:45
void reset() override
reset function
Definition: PadeFunctors.h:79
int where(int i) const
return the locator of the i-th Index
Definition: VariableSet.h:90
size_type size() const
return the size
Definition: VariableSet.h:88
bool Opt_A
true, if A is optimizable
Definition: PadeFunctors.h:41
bool Opt_B
true, if B is optimizable
Definition: PadeFunctors.h:43
opt_variables_type myVars
set of variables to be optimized

◆ setCusp()

void setCusp ( real_type  cusp)
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().

71  {
72  A = cusp;
73  Opt_A = false;
74  reset();
75  }
real_type A
input A
Definition: PadeFunctors.h:45
void reset() override
reset function
Definition: PadeFunctors.h:79
bool Opt_A
true, if A is optimizable
Definition: PadeFunctors.h:41

Member Data Documentation

◆ A

◆ AB

AB=A*B.

Definition at line 53 of file PadeFunctors.h.

Referenced by PadeFunctor< T >::reset().

◆ AoverB

◆ B

◆ B0

◆ B2

◆ ID_A

std::string ID_A

id of A

Definition at line 59 of file PadeFunctors.h.

Referenced by PadeFunctor< T >::put().

◆ ID_B

std::string ID_B

id of B

Definition at line 61 of file PadeFunctors.h.

Referenced by PadeFunctor< T >::put().

◆ Opt_A

◆ Opt_B

bool Opt_B

◆ Scale

real_type Scale

input scaling, default=1.0

Definition at line 49 of file PadeFunctors.h.

Referenced by PadeFunctor< T >::reset().


The documentation for this struct was generated from the following file: