Allows to export Gaussian elimination for solving linear systems of specific dimensions. More...
#include <gaussian_elimination_export.hpp>
Public Member Functions | |
returnValue | appendVariableNames (std::stringstream &string) |
ExportGaussElim (UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="") | |
virtual returnValue | getCode (ExportStatementBlock &code) |
virtual returnValue | getDataDeclarations (ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const |
virtual returnValue | getFunctionDeclarations (ExportStatementBlock &declarations) const |
virtual ExportVariable | getGlobalExportVariable (const uint factor) const |
virtual returnValue | setup () |
virtual | ~ExportGaussElim () |
Protected Attributes | |
ExportVariable | rk_bPerm |
ExportVariable | rk_perm |
ExportVariable | rk_swap |
Allows to export Gaussian elimination for solving linear systems of specific dimensions.
The class ExportGaussElim allows to export Gaussian elimination for solving linear systems of specific dimensions.
Definition at line 54 of file gaussian_elimination_export.hpp.
BEGIN_NAMESPACE_ACADO ExportGaussElim::ExportGaussElim | ( | 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 44 of file gaussian_elimination_export.cpp.
ExportGaussElim::~ExportGaussElim | ( | ) | [virtual] |
Destructor.
Definition at line 50 of file gaussian_elimination_export.cpp.
returnValue ExportGaussElim::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 237 of file gaussian_elimination_export.cpp.
returnValue ExportGaussElim::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 79 of file gaussian_elimination_export.cpp.
returnValue ExportGaussElim::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 53 of file gaussian_elimination_export.cpp.
returnValue ExportGaussElim::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 66 of file gaussian_elimination_export.cpp.
ExportVariable ExportGaussElim::getGlobalExportVariable | ( | const uint | factor | ) | const [virtual] |
Returns the dimension of the auxiliary variables for the linear solver.
Reimplemented from ExportLinearSolver.
Definition at line 283 of file gaussian_elimination_export.cpp.
returnValue ExportGaussElim::setup | ( | ) | [virtual] |
Initializes code export into given file.
Implements ExportLinearSolver.
Definition at line 249 of file gaussian_elimination_export.cpp.
ExportVariable ExportGaussElim::rk_bPerm [protected] |
Variable containing the reordered right-hand side.
Definition at line 138 of file gaussian_elimination_export.hpp.
ExportVariable ExportGaussElim::rk_perm [protected] |
Variable containing the order of the rows.
Definition at line 139 of file gaussian_elimination_export.hpp.
ExportVariable ExportGaussElim::rk_swap [protected] |
Variable that is used to swap rows for pivoting.
Definition at line 137 of file gaussian_elimination_export.hpp.