21#ifndef _libint2_src_bin_libint_cr11divg12primextx11_h_
22#define _libint2_src_bin_libint_cr11divg12primextx11_h_
24#include <generic_rr.h>
25#include <integral_11_11.h>
28#define USE_R12kR12lG12 1
34 template <
class BFSet>
37 GenIntegralSet_11_11<BFSet,DivG12prime_xTx,mType> >
45 static const unsigned int max_nchildren = 36;
53 using ParentType::RecurrenceRelation::expr_;
54 using ParentType::RecurrenceRelation::nflops_;
55 using ParentType::target_;
60 static std::string descr() {
return "CR"; }
62 template<
class RR,
class C>
friend class ChildFactory;
66 CR_11_DivG12prime_xTx_11<F>::CR_11_DivG12prime_xTx_11(
const SafePtr<TargetType>& Tint,
70 using namespace libint2::algebra;
71 using namespace libint2::prefactor;
75 const int i = target_->oper()->descr().I();
85 target_->oper()->descr().contracted())
91 typedef GenIntegralSet_11_11<BasisFunctionType,R12kR12lG12,EmptySet> ChildType;
92 ChildFactory<ThisType,ChildType> factory(
this);
93 for(
int bxyz=0; bxyz<3; ++bxyz) {
94 for(
int kxyz=0; kxyz<3; ++kxyz) {
95 R12k_R12l_G12_Descr descr(unit_intvec3(bxyz),unit_intvec3(kxyz));
102 typedef GenIntegralSet_11_11<BasisFunctionType,R12kR12lG12,EmptySet> ChildType;
103 ChildFactory<ThisType,ChildType> factory(
this);
104 for(
int bxyz=0; bxyz<3; ++bxyz) {
105 for(
int kxyz=0; kxyz<3; ++kxyz) {
106 R12k_R12l_G12_Descr descr(unit_intvec3(bxyz),unit_intvec3(kxyz));
115 typedef GenIntegralSet_11_11<BasisFunctionType,R12kG12,mType> ChildType;
116 ChildFactory<ThisType,ChildType> factory(
this);
122 typedef GenIntegralSet_11_11<BasisFunctionType,R12kG12,mType> ChildType;
123 ChildFactory<ThisType,ChildType> factory(
this);
127 if (is_simple()) expr_ *= Scalar(-4.0) * Scalar(
"gamma_bra") * Scalar(
"gamma_ket");
Set of basis functions.
Definition: bfset.h:42
Compute relation for 2-e integrals of the DivG12prime_xTx operators.
Definition: comp_11_DivG12prime_xTx_11.h:38
static bool directional()
This relation is not directional.
Definition: comp_11_DivG12prime_xTx_11.h:50
Generic integral over a two-body operator with one bfs for each particle in bra and ket.
Definition: integral_11_11.h:33
RRImpl must inherit GenericRecurrenceRelation<RRImpl>
Definition: generic_rr.h:47
bool is_simple() const override
Implementation of RecurrenceRelation::is_simple()
Definition: generic_rr.h:79
static SafePtr< RRImpl > Instance(const SafePtr< TargetType > &Tint, unsigned int dir)
Return an instance if applicable, or a null pointer otherwise.
Definition: generic_rr.h:55
these objects help to construct BraketPairs
Definition: src/bin/libint/braket.h:270
BraketPair< F, PKet > _pket(const F &f1, const F &f2)
Physicists ket.
Definition: src/bin/libint/braket.h:276
BraketPair< F, PBra > _pbra(const F &f1, const F &f2)
Physicists bra.
Definition: src/bin/libint/braket.h:272
Defaults definitions for various parameters assumed by Libint.
Definition: algebra.cc:24
DefaultQuantumNumbers< unsignedint, 1 >::Result mType
mType is the type that describes the auxiliary index of standard 2-body repulsion integrals
Definition: quanta.h:408
LinearCombination< SafePtr< DGVertex >, BraketPair< F, BKType > > Nabla1(const BraketPair< F, BKType > &bkt, int xyz)
Applies Nabla1 to a physicists' braket.
Definition: gaussoper.h:132
LinearCombination< SafePtr< DGVertex >, BraketPair< F, BKType > > Nabla2(const BraketPair< F, BKType > &bkt, int xyz)
Applies Nabla2 to a physicists' braket.
Definition: gaussoper.h:165
LinearCombination< SafePtr< DGVertex >, BraketPair< F, BKType > > R12vec_dot_Nabla2(const BraketPair< F, BKType > &bkt)
Applies R12vec_dot_Nabla2 to a physicists' braket.
Definition: gaussoper.h:84
LinearCombination< SafePtr< DGVertex >, BraketPair< F, BKType > > R12vec_dot_Nabla1(const BraketPair< F, BKType > &bkt)
Applies R12vec_dot_Nabla1 to a physicists' braket.
Definition: gaussoper.h:36
DefaultQuantumNumbers< int, 0 >::Result EmptySet
EmptySet is the type that describes null set of auxiliary indices.
Definition: quanta.h:404