GQCP
Loading...
Searching...
No Matches
BaseOneElectronIntegralEngine.hpp
Go to the documentation of this file.
1// This file is part of GQCG-GQCP.
2//
3// Copyright (C) 2017-2020 the GQCG developers
4//
5// GQCG-GQCP is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// GQCG-GQCP 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 Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with GQCG-GQCP. If not, see <http://www.gnu.org/licenses/>.
17
18#pragma once
19
20
22
23#include <memory>
24
25
26namespace GQCP {
27
28
36template <typename _Shell, size_t _N, typename _IntegralScalar>
38public:
39 // The type of shell the integral engine is able to handle. This enables compile-time checking of correct arguments.
40 using Shell = _Shell;
41
42 // The scalar representation of an integral.
43 using IntegralScalar = _IntegralScalar;
44
45 // The number of components the operator has.
46 static constexpr auto N = _N;
47
48
49public:
50 /*
51 * A default destructor.
52 */
53 virtual ~BaseOneElectronIntegralEngine() = default;
54
55
56 /*
57 * MARK: Integral calculations
58 */
59
70 virtual std::shared_ptr<BaseOneElectronIntegralBuffer<IntegralScalar, N>> calculate(const Shell& shell1, const Shell& shell2) = 0;
71};
72
73
74} // namespace GQCP
Definition: BaseOneElectronIntegralEngine.hpp:37
static constexpr auto N
Definition: BaseOneElectronIntegralEngine.hpp:46
virtual std::shared_ptr< BaseOneElectronIntegralBuffer< IntegralScalar, N > > calculate(const Shell &shell1, const Shell &shell2)=0
virtual ~BaseOneElectronIntegralEngine()=default
_Shell Shell
Definition: BaseOneElectronIntegralEngine.hpp:40
_IntegralScalar IntegralScalar
Definition: BaseOneElectronIntegralEngine.hpp:43
Definition: BaseOneElectronIntegralBuffer.hpp:25