ergo
matrix_typedefs.h
Go to the documentation of this file.
1/* Ergo, version 3.8.2, a program for linear scaling electronic structure
2 * calculations.
3 * Copyright (C) 2023 Elias Rudberg, Emanuel H. Rubensson, Pawel Salek,
4 * and Anastasia Kruchinina.
5 *
6 * This program 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 * This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * Primary academic reference:
20 * Ergo: An open-source program for linear-scaling electronic structure
21 * calculations,
22 * Elias Rudberg, Emanuel H. Rubensson, Pawel Salek, and Anastasia
23 * Kruchinina,
24 * SoftwareX 7, 107 (2018),
25 * <http://dx.doi.org/10.1016/j.softx.2018.03.005>
26 *
27 * For further information about Ergo, see <http://www.ergoscf.org>.
28 */
29
36#ifndef MATRIX_TYPEDEFS_HEADER
37#define MATRIX_TYPEDEFS_HEADER
38
39
40#include "realtype.h"
41
42#include "Matrix.h"
43#include "Vector.h"
44#include "MatrixSymmetric.h"
45#include "MatrixTriangular.h"
46#include "MatrixGeneral.h"
47#include "VectorGeneral.h"
48#include "mat_gblas.h"
49
50
51// Matrix typedefs for different levels
57
58// Vector typedefs for different levels
64
65// perm and matri are the types actually used.
66// This is the point where we choose how many levels to use.
67#define MATLEVEL 5
68typedef Mat_5 Matri;
70
71// The typedefs for symmMatrix, triangMatrix, normalMatrix
72// are the same regardless of how many levels are used.
77
79
80
81
82#endif
General matrix class.
Symmetric matrix class.
Triangular matrix class.
The heart of the matrix library.
General vector class.
Copyright(c) Emanuel Rubensson 2006.
Definition Interval.h:46
Normal matrix.
Definition MatrixGeneral.h:59
Symmetric matrix.
Definition MatrixSymmetric.h:68
Upper non-unit triangular matrix.
Definition MatrixTriangular.h:59
Matrix class and heart of the matrix library.
Definition Vector.h:44
Definition VectorGeneral.h:48
Vector class.
Definition Vector.h:54
C++ interface to a subset of BLAS and LAPACK.
mat::Matrix< ergo_real, Mat_2 > Mat_3
Definition matrix_typedefs.h:54
mat::Vector< ergo_real, ergo_real > Vec_1
Definition matrix_typedefs.h:59
mat::Interval< ergo_real > intervalType
Definition matrix_typedefs.h:78
mat::MatrixSymmetric< ergo_real, Matri > symmMatrix
Definition matrix_typedefs.h:73
mat::Matrix< ergo_real, Mat_4 > Mat_5
Definition matrix_typedefs.h:56
mat::Vector< ergo_real, Vec_4 > Vec_5
Definition matrix_typedefs.h:63
mat::MatrixGeneral< ergo_real, Matri > normalMatrix
Definition matrix_typedefs.h:75
Mat_5 Matri
Definition matrix_typedefs.h:68
mat::Matrix< ergo_real, Mat_1 > Mat_2
Definition matrix_typedefs.h:53
Vec_5 Vectorrr
Definition matrix_typedefs.h:69
mat::Vector< ergo_real, Vec_2 > Vec_3
Definition matrix_typedefs.h:61
mat::MatrixTriangular< ergo_real, Matri > triangMatrix
Definition matrix_typedefs.h:74
mat::Matrix< ergo_real, Mat_3 > Mat_4
Definition matrix_typedefs.h:55
mat::VectorGeneral< ergo_real, Vectorrr > generalVector
Definition matrix_typedefs.h:76
mat::Vector< ergo_real, Vec_1 > Vec_2
Definition matrix_typedefs.h:60
mat::Vector< ergo_real, Vec_3 > Vec_4
Definition matrix_typedefs.h:62
mat::Matrix< ergo_real, ergo_real > Mat_1
Definition matrix_typedefs.h:52
Definition of the main floating-point datatype used; the ergo_real type.