21#ifndef _libint2_src_bin_libint_cr11tig1211_h_
22#define _libint2_src_bin_libint_cr11tig1211_h_
25#include <generic_rr.h>
26#include <tig12_11_11.h>
34 CR_11_TiG12_11<BFSet>, BFSet,
35 GenIntegralSet_11_11<BFSet, TiG12, mType> > {
42 static const unsigned int max_nchildren = 8;
51 using ParentType::target_;
52 using ParentType::RecurrenceRelation::expr_;
53 using ParentType::RecurrenceRelation::nflops_;
54 template <
class RR,
class C>
59 CR_11_TiG12_11(
const std::shared_ptr<TargetType>&,
unsigned int dir);
60 static std::string descr() {
return "CR"; }
64CR_11_TiG12_11<F>::CR_11_TiG12_11(
const std::shared_ptr<TargetType>& Tint,
66 : ParentType(Tint, dir) {
68 using namespace libint2::algebra;
69 using namespace libint2::prefactor;
72 const int i = target_->oper()->descr().K();
82 if (b.contracted() || target_->oper()->descr().contracted())
return;
85 if (d.contracted() || target_->oper()->descr().contracted())
return;
93 for (
int xyz = 0; xyz < 3; ++xyz) {
98 if (is_simple()) expr_ *= Scalar(2.0) * Scalar(
"gamma");
105 for (
int xyz = 0; xyz < 3; ++xyz) {
110 if (is_simple()) expr_ *= Scalar(-2.0) * Scalar(
"gamma");
116 auto ab_G0_cd = factory.make_child(a, b, c, d, 0u, G0);
117 if (is_simple()) expr_ += Scalar(3.0) * Scalar(
"gamma") * ab_G0_cd;
119 auto ab_G2_cd = factory.make_child(a, b, c, d, 0u, G2);
121 expr_ += Scalar(-2.0) * Scalar(
"gamma") * Scalar(
"gamma") * ab_G2_cd;
Set of basis functions.
Definition bfset.h:43
Compute relation for 2-e integrals of the Ti_G12 operators.
Definition comp_11_tig12_11.h:35
static bool directional()
This relation is not directional.
Definition comp_11_tig12_11.h:47
Helps GenericRecurrenceRelation to work around the compiler problem with make_child.
Definition generic_rr.h:150
Generic integral over a two-body operator with one bfs for each particle in bra and ket.
Definition integral_11_11.h:36
GenOper is a single operator described by descriptor Descr.
Definition oper.h:164
RRImpl must inherit GenericRecurrenceRelation<RRImpl>
Definition generic_rr.h:47
bool is_simple() const override
Implementation of RecurrenceRelation::is_simple()
Definition generic_rr.h:81
static std::shared_ptr< RRImpl > Instance(const std::shared_ptr< TargetType > &Tint, unsigned int dir)
Return an instance if applicable, or a null pointer otherwise.
Definition generic_rr.h:55
R12_k_G12 is a two-body operator of form r_{12}^k * exp(-\gamma * r_{12}), where k is an integer and ...
Definition oper.h:418
R12k_R12l_G12 is a two-body operator of form ( r_{12x}^kx * r_{12y}^ky * r_{12z}^kz ) * (r_{12x}^lx *...
Definition oper.h:445
these objects help to construct BraketPairs
Definition src/bin/libint/braket.h:275
BraketPair< F, PKet > _pket(const F &f1, const F &f2)
Physicists ket.
Definition src/bin/libint/braket.h:283
BraketPair< F, PBra > _pbra(const F &f1, const F &f2)
Physicists bra.
Definition src/bin/libint/braket.h:278
Defaults definitions for various parameters assumed by Libint.
Definition algebra.cc:24
LinearCombination< std::shared_ptr< DGVertex >, BraketPair< F, BKType > > Nabla1(const BraketPair< F, BKType > &bkt, int xyz)
Applies Nabla1 to a physicists' braket.
Definition gaussoper.h:127
LinearCombination< std::shared_ptr< DGVertex >, BraketPair< F, BKType > > Nabla2(const BraketPair< F, BKType > &bkt, int xyz)
Applies Nabla2 to a physicists' braket.
Definition gaussoper.h:158
DefaultQuantumNumbers< int, 0 >::Result EmptySet
EmptySet is the type that describes null set of auxiliary indices.
Definition quanta.h:390