QMCPACK
SCTFunctor< SCT, 1 > Struct Template Reference
+ Collaboration diagram for SCTFunctor< SCT, 1 >:

Public Types

using value_type = typename SCT::value_type
 
using pos_type = typename SCT::pos_type
 

Static Public Member Functions

static void apply (std::vector< value_type > &Ylm, std::vector< pos_type > &gYlm, const pos_type &p)
 

Detailed Description

template<class SCT>
struct SCTFunctor< SCT, 1 >

Definition at line 657 of file SphericalTensor.h.

Member Typedef Documentation

◆ pos_type

using pos_type = typename SCT::pos_type

Definition at line 660 of file SphericalTensor.h.

◆ value_type

using value_type = typename SCT::value_type

Definition at line 659 of file SphericalTensor.h.

Member Function Documentation

◆ apply()

static void apply ( std::vector< value_type > &  Ylm,
std::vector< pos_type > &  gYlm,
const pos_type p 
)
inlinestatic

Definition at line 661 of file SphericalTensor.h.

References qmcplusplus::sqrt(), and Ylm().

662  {
663  const value_type L1 = sqrt(3.0);
664  Ylm[1] = L1 * p[1];
665  Ylm[2] = L1 * p[2];
666  Ylm[3] = L1 * p[0];
667  gYlm[1] = pos_type(0.0, L1, 0.0);
668  gYlm[2] = pos_type(0.0, 0.0, L1);
669  gYlm[3] = pos_type(L1, 0.0, 0.0);
670  }
typename SCT::pos_type pos_type
std::complex< double > Ylm(int l, int m, const std::vector< double > &sph)
typename SCT::value_type value_type
MakeReturn< UnaryNode< FnSqrt, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sqrt(const Vector< T1, C1 > &l)

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