GQCP
Loading...
Searching...
No Matches
AdjacencyMatrix.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
31private:
32 // The matrix representation of the adjacency matrix.
34
35
36public:
37 /*
38 * MARK: Constructors
39 */
40
47
48
49 /*
50 * MARK: Named constructors
51 */
52
58 static AdjacencyMatrix Cyclic(const size_t n);
59
65 static AdjacencyMatrix Linear(const size_t n);
66
67
68 /*
69 * MARK: Access
70 */
71
75 const SquareMatrix<size_t>& matrix() const { return this->A; }
76
80 SquareMatrix<size_t>& matrix() { return this->A; }
81};
82
83
84} // namespace GQCP
Definition: AdjacencyMatrix.hpp:30
static AdjacencyMatrix Linear(const size_t n)
Definition: AdjacencyMatrix.cpp:83
static AdjacencyMatrix Cyclic(const size_t n)
Definition: AdjacencyMatrix.cpp:65
const SquareMatrix< size_t > & matrix() const
Definition: AdjacencyMatrix.hpp:75
SquareMatrix< size_t > & matrix()
Definition: AdjacencyMatrix.hpp:80
Definition: SquareMatrix.hpp:39
Definition: BaseOneElectronIntegralBuffer.hpp:25