autogenu-jupyter
An automatic code generator and the continuation/GMRES (C/GMRES) based numerical solvers for nonlinear MPC
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#ifndef CGMRES__TYPES_HPP_
2#define CGMRES__TYPES_HPP_
3
4#ifndef EIGEN_STACK_ALLOCATION_LIMIT
5#define EIGEN_STACK_ALLOCATION_LIMIT 0
6#endif
7
8#include "cgmres/thirdparty/eigen/Eigen/Core"
9
10namespace cgmres {
11
15using Scalar = double;
16
20template <int rows, int cols>
21using Matrix = Eigen::Matrix<Scalar, rows, cols>;
22
26template <int size>
27using Vector = Eigen::Matrix<Scalar, size, 1>;
28
32template <class MatrixType>
33using MatrixBase = Eigen::MatrixBase<MatrixType>;
34
38using MatrixX = Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic>;
39
43using VectorX = Eigen::Matrix<Scalar, Eigen::Dynamic, 1>;
44
48using VectorXi = Eigen::Matrix<int, Eigen::Dynamic, 1>;
49
53template <class MatrixType>
54using Map = Eigen::Map<MatrixType>;
55
56} // namespace cgmres
57
58#endif // CGMRES__TYPES_HPP_
Definition continuation_gmres.hpp:11
Eigen::Matrix< Scalar, rows, cols > Matrix
Alias of Eigen::Matrix.
Definition types.hpp:21
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > VectorX
Alias of Eigen::VectorXd (dynamic-size vector).
Definition types.hpp:43
Eigen::Map< MatrixType > Map
Alias of Eigen::Map.
Definition types.hpp:54
Eigen::Matrix< int, Eigen::Dynamic, 1 > VectorXi
Alias of Eigen::VectorXi (dynamic-size integer vector).
Definition types.hpp:48
Eigen::Matrix< Scalar, size, 1 > Vector
Alias of Eigen::Vector.
Definition types.hpp:27
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Alias of Eigen::MatrixXd (dynamic-size matrix).
Definition types.hpp:38
double Scalar
Alias of double.
Definition types.hpp:15
Eigen::MatrixBase< MatrixType > MatrixBase
Alias of Eigen::MatrixBase.
Definition types.hpp:33