QMCPACK
RPA0< T > Struct Template Reference

Functor which return $frac{Rs}{k^2 (k^2+(1/Rs)^2)}$. More...

+ Collaboration diagram for RPA0< T >:

Public Member Functions

 RPA0 (T rs=1)
 
operator() (T kk)
 

Public Attributes

Rs
 
OneOverRsSq
 

Detailed Description

template<typename T>
struct qmcplusplus::RPA0< T >

Functor which return $frac{Rs}{k^2 (k^2+(1/Rs)^2)}$.

Definition at line 38 of file kSpaceJastrow.h.

Constructor & Destructor Documentation

◆ RPA0()

RPA0 ( rs = 1)
inline

Definition at line 42 of file kSpaceJastrow.h.

References RPA0< T >::OneOverRsSq, and RPA0< T >::Rs.

42 : Rs(rs) { OneOverRsSq = 1.0 / (Rs * Rs); }

Member Function Documentation

◆ operator()()

T operator() ( kk)
inline

Definition at line 43 of file kSpaceJastrow.h.

References RPA0< T >::OneOverRsSq, RPA0< T >::Rs, and qmcplusplus::sqrt().

44  {
45  T k2 = std::sqrt(kk);
46  return Rs / (k2 * (k2 + OneOverRsSq));
47  //return (-0.5+0.5*std::pow(1.0+12.0*OneOverRs3/kk/kk,0.5));
48  }
MakeReturn< UnaryNode< FnSqrt, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sqrt(const Vector< T1, C1 > &l)

Member Data Documentation

◆ OneOverRsSq

T OneOverRsSq

Definition at line 41 of file kSpaceJastrow.h.

Referenced by RPA0< T >::operator()(), and RPA0< T >::RPA0().

◆ Rs

T Rs

Definition at line 40 of file kSpaceJastrow.h.

Referenced by RPA0< T >::operator()(), and RPA0< T >::RPA0().


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