A class for exporting a function for calculation of the Cholesky decomposition. More...
#include <export_cholesky_decomposition.hpp>
Public Member Functions | |
ExportCholeskyDecomposition (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 |
const std::string | getName () |
returnValue | init (const std::string &_name, unsigned _dim, bool _unrolling=false) |
virtual returnValue | setup () |
virtual | ~ExportCholeskyDecomposition () |
Private Attributes | |
ExportVariable | A |
ExportFunction | fcn |
bool | unrolling |
A class for exporting a function for calculation of the Cholesky decomposition.
Definition at line 50 of file export_cholesky_decomposition.hpp.
BEGIN_NAMESPACE_ACADO ExportCholeskyDecomposition::ExportCholeskyDecomposition | ( | 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 41 of file export_cholesky_decomposition.cpp.
virtual ExportCholeskyDecomposition::~ExportCholeskyDecomposition | ( | ) | [inline, virtual] |
Destructor.
Definition at line 64 of file export_cholesky_decomposition.hpp.
returnValue ExportCholeskyDecomposition::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 ExportAlgorithm.
Definition at line 119 of file export_cholesky_decomposition.cpp.
returnValue ExportCholeskyDecomposition::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 ExportAlgorithm.
Definition at line 103 of file export_cholesky_decomposition.cpp.
returnValue ExportCholeskyDecomposition::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 ExportAlgorithm.
Definition at line 110 of file export_cholesky_decomposition.cpp.
const std::string ExportCholeskyDecomposition::getName | ( | ) |
Get name of the function that perform the decomposition.
Definition at line 128 of file export_cholesky_decomposition.cpp.
returnValue ExportCholeskyDecomposition::init | ( | const std::string & | _name, |
unsigned | _dim, | ||
bool | _unrolling = false |
||
) |
Initializes the different parameters of the linear solver that will be exported.
Definition at line 48 of file export_cholesky_decomposition.cpp.
returnValue ExportCholeskyDecomposition::setup | ( | ) | [virtual] |
Initializes code export into given file.
Reimplemented from ExportAlgorithm.
Definition at line 61 of file export_cholesky_decomposition.cpp.
ExportVariable ExportCholeskyDecomposition::A [private] |
Definition at line 115 of file export_cholesky_decomposition.hpp.
Definition at line 116 of file export_cholesky_decomposition.hpp.
bool ExportCholeskyDecomposition::unrolling [private] |
Definition at line 117 of file export_cholesky_decomposition.hpp.