ergo
matrix_typedefs.h
Go to the documentation of this file.
1 /* Ergo, version 3.8, a program for linear scaling electronic structure
2  * calculations.
3  * Copyright (C) 2019 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
68 typedef Mat_5 Matri;
69 typedef Vec_5 Vectorrr;
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
MatrixTriangular.h
realtype.h
Definition of the main floating-point datatype used; the ergo_real type.
Vector.h
Vectorrr
Vec_5 Vectorrr
Definition: matrix_typedefs.h:69
symmMatrix
mat::MatrixSymmetric< ergo_real, Matri > symmMatrix
Definition: matrix_typedefs.h:73
Matrix.h
mat_gblas.h
Mat_4
mat::Matrix< ergo_real, Mat_3 > Mat_4
Definition: matrix_typedefs.h:55
triangMatrix
mat::MatrixTriangular< ergo_real, Matri > triangMatrix
Definition: matrix_typedefs.h:74
Vec_3
mat::Vector< ergo_real, Vec_2 > Vec_3
Definition: matrix_typedefs.h:61
mat::MatrixSymmetric
Symmetric matrix.
Definition: MatrixBase.h:51
mat::MatrixTriangular
Upper non-unit triangular matrix.
Definition: MatrixBase.h:53
Vec_1
mat::Vector< ergo_real, ergo_real > Vec_1
Definition: matrix_typedefs.h:59
Mat_2
mat::Matrix< ergo_real, Mat_1 > Mat_2
Definition: matrix_typedefs.h:53
Mat_1
mat::Matrix< ergo_real, ergo_real > Mat_1
Definition: matrix_typedefs.h:52
mat::Vector
Vector class.
Definition: Matrix.h:78
Vec_4
mat::Vector< ergo_real, Vec_3 > Vec_4
Definition: matrix_typedefs.h:62
mat::VectorGeneral
Definition: MatrixBase.h:55
generalVector
mat::VectorGeneral< ergo_real, Vectorrr > generalVector
Definition: matrix_typedefs.h:76
mat::MatrixGeneral
Normal matrix.
Definition: MatrixBase.h:49
Mat_3
mat::Matrix< ergo_real, Mat_2 > Mat_3
Definition: matrix_typedefs.h:54
intervalType
mat::Interval< ergo_real > intervalType
Definition: matrix_typedefs.h:78
mat::Matrix
Matrix class and heart of the matrix library.
Definition: Matrix.h:115
mat::Interval< ergo_real >
Vec_5
mat::Vector< ergo_real, Vec_4 > Vec_5
Definition: matrix_typedefs.h:63
Matri
Mat_5 Matri
Definition: matrix_typedefs.h:68
MatrixSymmetric.h
Mat_5
mat::Matrix< ergo_real, Mat_4 > Mat_5
Definition: matrix_typedefs.h:56
MatrixGeneral.h
VectorGeneral.h
Vec_2
mat::Vector< ergo_real, Vec_1 > Vec_2
Definition: matrix_typedefs.h:60
normalMatrix
mat::MatrixGeneral< ergo_real, Matri > normalMatrix
Definition: matrix_typedefs.h:75