45 const std::string& _commonHeaderName
80 unsigned run1, run2, run3;
88 for (run2 =
nCols - 1; run2 > (run1 - 1); run2--)
94 "b[" <<
toString((run1 - 1)) <<
"] = b[" 108 for (run1 = 0; run1 <
nCols; run1++)
110 for (run2 = run1; run2 <
nRows; run2++)
128 <<
"[" <<
toString(nRows) <<
"];\n";
138 for (run2 = run1; run2 <
nRows; run2++)
162 for (run2 = run1; run2 < nRows - 1; run2++)
171 for (run2 = run1 + 1; run2 <
nCols; run2++)
179 for (run3 = run1; run3 <
nRows; run3++)
192 for (run3 = run1; run3 <
nRows; run3++)
279 for( run1 = 0; run1 <
nCols; run1++ ) {
281 for( run2 = run1+1; run2 < (
nRows-1); run2++ ) {
286 for( run3 = run1; run3 < (
nRows-1); run3++ ) {
ExportVariable getRow(const ExportIndex &idx) const
ExportVariable getTranspose() const
UserInteraction * userInteraction
returnValue get(OptionsName name, int &value) const
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
Allows to pass back messages to the calling function.
virtual ~ExportHouseholderQR()
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
string toString(T const &value)
ExportVariable getElement(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
#define CLOSE_NAMESPACE_ACADO
virtual returnValue setup()
ExportVariable getSubMatrix(const ExportIndex &rowIdx1, const ExportIndex &rowIdx2, const ExportIndex &colIdx1, const ExportIndex &colIdx2) const
Defines a scalar-valued index variable to be used for exporting code.
ExportVariable determinant
ExportFunction solveTriangular
ExportVariable getCols(const ExportIndex &idx1, const ExportIndex &idx2) const
ExportHouseholderQR(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
returnValue appendVariableNames(std::stringstream &string)
const std::string getNameSolveReuseFunction()
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)
ExportFunction solveReuse
virtual returnValue getCode(ExportStatementBlock &code)
std::string getFullName() const
returnValue addLinebreak(uint num=1)
ExportFunction & setReturnValue(const ExportVariable &_functionReturnValue, bool _returnAsPointer=false)
ExportVariable getRows(const ExportIndex &idx1, const ExportIndex &idx2) const
returnValue addDeclaration(const ExportVariable &_data, ExportStruct _dataStruct=ACADO_ANY)
const std::string getNameSolveFunction()
#define BEGIN_NAMESPACE_ACADO
returnValue addFunction(const ExportFunction &_function)
Allows to export automatically generated algorithms for solving linear systems of specific dimensions...
Allows to export code for a block of statements.
ExportVariable getCol(const ExportIndex &idx) const
ExportFunction & addIndex(const ExportIndex &_index)
#define ACADOERROR(retval)
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const
Defines a matrix-valued variable to be used for exporting code.
returnValue addFunctionCall(const std::string &_fName, 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)
virtual ExportVariable getGlobalExportVariable(const uint factor) const