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