LIBINT  2.6.0
twoprep_11_11.h
1 /*
2  * Copyright (C) 2004-2019 Edward F. Valeev
3  *
4  * This file is part of Libint.
5  *
6  * Libint is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Libint is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Libint. If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef _libint2_src_bin_libint_twoprep1111_h_
22 #define _libint2_src_bin_libint_twoprep1111_h_
23 
24 #include <integral.h>
25 #include <integral_11_11.h>
26 
27 using namespace std;
28 
29 namespace libint2 {
30 
38  namespace detail {
39  template <typename Bra>
40  bool is_nonderiv_ss_product(Bra&& bra) {
41  return bra.member(0,0).zero() && bra.member(1,0).zero() &&
42  bra.member(0,0).contracted() == false && bra.member(1,0).contracted() == false &&
43  bra.member(0,0).deriv().zero() && bra.member(1,0).deriv().zero();
44  };
45  }
47  template <>
48  inline bool
49  GenIntegralSet_11_11<CGF,TwoPRep,mType>::this_precomputed() const
50  {
51  if (detail::is_nonderiv_ss_product(parent_type::bra_) && detail::is_nonderiv_ss_product(parent_type::ket_))
52  return true;
53  else
54  return false;
55  }
56 
58  template <>
59  inline bool
61  {
62  if (detail::is_nonderiv_ss_product(parent_type::bra_) && detail::is_nonderiv_ss_product(parent_type::ket_))
63  return true;
64  else
65  return false;
66  }
67 
68 };
69 
70 #endif
71 
Defaults definitions for various parameters assumed by Libint.
Definition: algebra.cc:24
Generic integral over a two-body operator with one bfs for each particle in bra and ket.
Definition: integral_11_11.h:33