COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
MatrixTypes.hpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2 //
3 // This software is distributed under the terms of the
4 // GNU Lesser General Public License version 3 (LGPLv3).
5 // See doc/lgpl.txt and doc/gpl.txt for the license text.
6 
7 
8 #ifndef cf3_math_MatrixTypes_hpp
9 #define cf3_math_MatrixTypes_hpp
10 
12 #include <Eigen/Dense>
13 #include <Eigen/StdVector>
14 
15 #include "common/CF.hpp"
16 
17 namespace cf3 {
18 
20 
22 typedef Eigen::Matrix<Real, Eigen::Dynamic, Eigen::Dynamic> RealMatrix;
23 
25 typedef Eigen::Matrix<Real, Eigen::Dynamic, 1> RealVector;
26 
28 typedef RealVector RealColVector;
29 
31 typedef Eigen::Matrix<Real, 1, Eigen::Dynamic> RealRowVector;
32 
33 // Fixed size matrix typedefs for 2x2, 3x3 and 4x4 matrices
34 typedef Eigen::Matrix<Real, 2, 2> RealMatrix2;
35 typedef Eigen::Matrix<Real, 3, 3> RealMatrix3;
36 typedef Eigen::Matrix<Real, 4, 4> RealMatrix4;
37 
38 // Fixed size vectors for 1, 2, 3 and 4 elements
39 typedef Eigen::Matrix<Real, 1, 1> RealVector1;
40 typedef Eigen::Matrix<Real, 2, 1> RealVector2;
41 typedef Eigen::Matrix<Real, 3, 1> RealVector3;
42 typedef Eigen::Matrix<Real, 4, 1> RealVector4;
43 
44 // Fixed size vectors for 1, 2, 3 and 4 elements
45 typedef Eigen::Matrix<Real, 1, 1> RealRowVector1;
46 typedef Eigen::Matrix<Real, 1, 2> RealRowVector2;
47 typedef Eigen::Matrix<Real, 1, 3> RealRowVector3;
48 typedef Eigen::Matrix<Real, 1, 4> RealRowVector4;
49 
51 
52 } // cf3
53 
54 #endif // cf3_math_MatrixTypes_hpp
Eigen::Matrix< Real, 1, 1 > RealVector1
Fixed size 1x1 column vector.
Definition: MatrixTypes.hpp:39
RealVector RealColVector
Dynamic sized column vector (alternative naming)
Definition: MatrixTypes.hpp:28
Eigen::Matrix< Real, 1, 1 > RealRowVector1
Fixed size 1x1 row vector.
Definition: MatrixTypes.hpp:45
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic > RealMatrix
Dynamic sized matrix of Real scalars.
Definition: MatrixTypes.hpp:22
Eigen::Matrix< Real, 1, Eigen::Dynamic > RealRowVector
Dynamic sized row vector.
Definition: MatrixTypes.hpp:31
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealVector
Dynamic sized column vector.
Definition: MatrixTypes.hpp:25
Top-level namespace for coolfluid.
Definition: Action.cpp:18
Eigen::Matrix< Real, 1, 2 > RealRowVector2
Fixed size 1x2 row vector.
Definition: MatrixTypes.hpp:46
Eigen::Matrix< Real, 2, 2 > RealMatrix2
Fixed size 2x2 matrix.
Definition: MatrixTypes.hpp:34
Eigen::Matrix< Real, 1, 4 > RealRowVector4
Fixed size 1x4 row vector.
Definition: MatrixTypes.hpp:48
Eigen::Matrix< Real, 4, 1 > RealVector4
Fixed size 4x1 column vector.
Definition: MatrixTypes.hpp:42
Eigen::Matrix< Real, 2, 1 > RealVector2
Fixed size 2x1 column vector.
Definition: MatrixTypes.hpp:40
coolfluid3 header, included almost everywhere
Eigen::Matrix< Real, 3, 3 > RealMatrix3
Fixed size 3x3 matrix.
Definition: MatrixTypes.hpp:35
Eigen::Matrix< Real, 1, 3 > RealRowVector3
Fixed size 1x3 row vector.
Definition: MatrixTypes.hpp:47
Eigen::Matrix< Real, 3, 1 > RealVector3
Fixed size 3x1 column vector.
Definition: MatrixTypes.hpp:41
Eigen::Matrix< Real, 4, 4 > RealMatrix4
Fixed size 4x4 matrix.
Definition: MatrixTypes.hpp:36
Send comments to:
COOLFluiD Web Admin