41 const std::string& _commonHeaderName
52 const std::string& _id
73 unsigned flopsChol, flopsSolve;
95 for(
int ii = 0; ii < (int)
nRows; ++ii)
97 for (
int k = 0; k < ii; ++k)
103 for(
int k = (ii - 1); k >= 0; --k)
121 for(
int jj = (ii + 1); jj < (int)
nRows; ++jj)
127 for(
int k = (ii - 1); k >= 0; --k)
152 iiLoop <<
"if (" << sum.
getFullName() <<
"< 0.0) return 1;\n";
181 if (flopsSolve < 128)
183 for(
int i = 0; i < int(
nRows); ++i)
188 for(
int j = 0; j < i; ++j)
virtual returnValue getCode(ExportStatementBlock &code)
virtual returnValue setup()
ExportCholeskySolver(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
ExportVariable & setup(const std::string &_name, uint _nRows=1, uint _nCols=1, ExportType _type=REAL, ExportStruct _dataStruct=ACADO_LOCAL, bool _callItByValue=false, const std::string &_prefix=std::string())
const ExportFunction & getCholeskyFunction() const
Allows to pass back messages to the calling function.
virtual returnValue appendVariableNames(std::stringstream &string)
Allows to export code of a for-loop.
ExportVariable getElement(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
#define CLOSE_NAMESPACE_ACADO
Defines a scalar-valued index variable to be used for exporting code.
ExportFunction & setup(const std::string &_name="defaultFunctionName", const ExportArgument &_argument1=emptyConstExportArgument, const ExportArgument &_argument2=emptyConstExportArgument, const ExportArgument &_argument3=emptyConstExportArgument, const ExportArgument &_argument4=emptyConstExportArgument, const ExportArgument &_argument5=emptyConstExportArgument, const ExportArgument &_argument6=emptyConstExportArgument, const ExportArgument &_argument7=emptyConstExportArgument, const ExportArgument &_argument8=emptyConstExportArgument, const ExportArgument &_argument9=emptyConstExportArgument)
const ExportFunction & getSolveFunction() const
returnValue init(unsigned _dimA, unsigned _numColsB, const std::string &_id)
const std::string get(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
virtual ~ExportCholeskySolver()
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
Encapsulates all user interaction for setting options, logging data and plotting results.
Allows to export code of an arbitrary function.
returnValue addStatement(const ExportStatement &_statement)
std::string getFullName() const
ExportFunction & setReturnValue(const ExportVariable &_functionReturnValue, bool _returnAsPointer=false)
virtual ExportFunction & acquire(ExportIndex &obj)
ExportFunction & addVariable(const ExportVariable &_var)
returnValue addDeclaration(const ExportVariable &_data, ExportStruct _dataStruct=ACADO_ANY)
virtual ExportFunction & release(const ExportIndex &obj)
#define BEGIN_NAMESPACE_ACADO
returnValue addFunction(const ExportFunction &_function)
Allows to export automatically generated algorithms for solving linear systems of specific dimensions...
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const
Allows to export code for a block of statements.
#define ACADOERROR(retval)
Defines a matrix-valued variable to be used for exporting code.