GQCP
Loading...
Searching...
No Matches
BaseTwoElectronIntegralEngine.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
24namespace GQCP {
25
26
36template <typename _Shell, size_t _N, typename _IntegralScalar>
38public:
39 using Shell = _Shell; // the type of shell the integral engine is able to handle
40 using IntegralScalar = _IntegralScalar; // the scalar representation of an integral
41 static constexpr auto N = _N; // the number of components the operator has
42
43
44public:
45 // DESTRUCTOR
46 virtual ~BaseTwoElectronIntegralEngine() = default;
47
48
49 // PUBLIC PURE VIRTUAL METHODS
50
62 virtual std::shared_ptr<BaseTwoElectronIntegralBuffer<IntegralScalar, N>> calculate(const Shell& shell1, const Shell& shell2, const Shell& shell3, const Shell& shell4) = 0;
63};
64
65
66} // namespace GQCP
Definition: BaseTwoElectronIntegralEngine.hpp:37
static constexpr auto N
Definition: BaseTwoElectronIntegralEngine.hpp:41
_Shell Shell
Definition: BaseTwoElectronIntegralEngine.hpp:39
virtual std::shared_ptr< BaseTwoElectronIntegralBuffer< IntegralScalar, N > > calculate(const Shell &shell1, const Shell &shell2, const Shell &shell3, const Shell &shell4)=0
_IntegralScalar IntegralScalar
Definition: BaseTwoElectronIntegralEngine.hpp:40
virtual ~BaseTwoElectronIntegralEngine()=default
Definition: BaseOneElectronIntegralBuffer.hpp:25