Allows to export linear solver based on Cholesky factorization. More...
#include <export_cholesky_solver.hpp>
Public Member Functions | |
virtual returnValue | appendVariableNames (std::stringstream &string) |
ExportCholeskySolver (UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="") | |
const ExportFunction & | getCholeskyFunction () const |
virtual returnValue | getCode (ExportStatementBlock &code) |
virtual returnValue | getDataDeclarations (ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const |
virtual returnValue | getFunctionDeclarations (ExportStatementBlock &declarations) const |
const ExportFunction & | getSolveFunction () const |
returnValue | init (unsigned _dimA, unsigned _numColsB, const std::string &_id) |
virtual returnValue | setup () |
virtual | ~ExportCholeskySolver () |
Private Attributes | |
ExportVariable | B |
ExportFunction | chol |
unsigned | nColsB |
Allows to export linear solver based on Cholesky factorization.
Allows export of linear system solver, where the A matrix is a symmetric positive definite of dimensions n x n, and matrix B is of dimensions n x m, m >= 1.
This class configures and exports two functions:
Definition at line 62 of file export_cholesky_solver.hpp.
BEGIN_NAMESPACE_ACADO ExportCholeskySolver::ExportCholeskySolver | ( | UserInteraction * | _userInteraction = 0 , |
const std::string & | _commonHeaderName = "" |
||
) |
Default constructor.
[in] | _userInteraction | Pointer to corresponding user interface. |
[in] | _commonHeaderName | Name of common header file to be included. |
Definition at line 40 of file export_cholesky_solver.cpp.
ExportCholeskySolver::~ExportCholeskySolver | ( | ) | [virtual] |
Destructor.
Definition at line 47 of file export_cholesky_solver.cpp.
returnValue ExportCholeskySolver::appendVariableNames | ( | std::stringstream & | string | ) | [virtual] |
Appends the names of the used variables to a given stringstream.
[in] | string | The string to which the names of the used variables are appended. |
Implements ExportLinearSolver.
Definition at line 254 of file export_cholesky_solver.cpp.
const ExportFunction & ExportCholeskySolver::getCholeskyFunction | ( | ) | const |
Get the reference to the Cholesky decomposition routine.
Definition at line 244 of file export_cholesky_solver.cpp.
returnValue ExportCholeskySolver::getCode | ( | ExportStatementBlock & | code | ) | [virtual] |
Exports source code of the auto-generated algorithm into the given directory.
[in] | code | Code block containing the auto-generated algorithm. |
Implements ExportLinearSolver.
Definition at line 220 of file export_cholesky_solver.cpp.
returnValue ExportCholeskySolver::getDataDeclarations | ( | ExportStatementBlock & | declarations, |
ExportStruct | dataStruct = ACADO_ANY |
||
) | const [virtual] |
Adds all data declarations of the auto-generated algorithm to given list of declarations.
[in] | declarations | List of declarations. |
Implements ExportLinearSolver.
Definition at line 228 of file export_cholesky_solver.cpp.
returnValue ExportCholeskySolver::getFunctionDeclarations | ( | ExportStatementBlock & | declarations | ) | const [virtual] |
Adds all function (forward) declarations of the auto-generated algorithm to given list of declarations.
[in] | declarations | List of declarations. |
Implements ExportLinearSolver.
Definition at line 235 of file export_cholesky_solver.cpp.
const ExportFunction & ExportCholeskySolver::getSolveFunction | ( | ) | const |
Get the reference to the solve function.
Definition at line 249 of file export_cholesky_solver.cpp.
returnValue ExportCholeskySolver::init | ( | unsigned | _dimA, |
unsigned | _numColsB, | ||
const std::string & | _id | ||
) |
Solver initialization routine.
Definition at line 50 of file export_cholesky_solver.cpp.
returnValue ExportCholeskySolver::setup | ( | ) | [virtual] |
The setup routine.
Implements ExportLinearSolver.
Definition at line 71 of file export_cholesky_solver.cpp.
ExportVariable ExportCholeskySolver::B [private] |
Definition at line 140 of file export_cholesky_solver.hpp.
ExportFunction ExportCholeskySolver::chol [private] |
Definition at line 138 of file export_cholesky_solver.hpp.
unsigned ExportCholeskySolver::nColsB [private] |
Definition at line 142 of file export_cholesky_solver.hpp.