45 const std::string& _commonHeaderName
288 for( i = 0; i < 4; i++ ) {
292 for( i = 0; i < 4; i++ ) {
296 for( i = 0; i < 4; i++ ) {
300 for( i = 0; i < 4; i++ ) {
385 if( _transf1.isZero() || _transf2.isZero() || _transf1_T.isZero() || _transf2_T.isZero() || _low_tria.isZero() )
return ACADOERROR(
RET_INVALID_ARGUMENTS );
400 return string(
"solve_" ) +
identifier +
"sub_system";
406 return string(
"solve_" ) +
identifier +
"sub_system_reuse";
412 return string(
"solve_" ) +
identifier +
"sub_transpose_reuse";
ExportFunction solve_full
virtual returnValue setup()
ExportVariable getRow(const ExportIndex &idx) const
const std::string getNameSolveTransposeReuseFunction()
ExportVariable rk_perm_full
ExportFunction solveReuseTranspose
virtual returnValue setup()
Allows to pass back messages to the calling function.
const std::string getNameSubSolveReuseFunction()
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
virtual returnValue setupSolveReuseTranspose(ExportFunction &_solveReuse, ExportVariable &_bPerm)
Allows to export code of a for-loop.
virtual returnValue setupSolveReuseComplete(ExportFunction &_solveReuse, ExportVariable &_bPerm)
ExportVariable getElement(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
#define CLOSE_NAMESPACE_ACADO
returnValue setImplicit(BooleanType _implicit)
Defines a scalar-valued index variable to be used for exporting code.
ExportVariable determinant
ExportFunction solveReuse_full
ExportVariable b_full_trans
returnValue setTransformations(const double _tau, const DVector &_low_tria, const DMatrix &_transf1, const DMatrix &_transf2, const DMatrix &_transf1_T, const DMatrix &_transf2_T)
virtual returnValue getCode(ExportStatementBlock &code)
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
ExportVariable b_mem_trans
Allows to export Gaussian elimination for solving linear systems of specific dimensions.
const std::string getNameSolveReuseFunction()
virtual ~ExportIRK4StageSingleNewton()
const std::string getNameSubSolveFunction()
Encapsulates all user interaction for setting options, logging data and plotting results.
Allows to export code of an arbitrary function.
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const
returnValue addStatement(const ExportStatement &_statement)
ExportFunction solveReuse
bool isZero(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
unsigned getNumRows() const
returnValue addLinebreak(uint num=1)
const std::string getNameSubSolveTransposeReuseFunction()
ExportFunction & setReturnValue(const ExportVariable &_functionReturnValue, bool _returnAsPointer=false)
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
unsigned getNumCols() const
ExportFunction & addVariable(const ExportVariable &_var)
returnValue setStepSize(double _stepsize)
returnValue addDeclaration(const ExportVariable &_data, ExportStruct _dataStruct=ACADO_ANY)
const std::string getNameSolveFunction()
#define BEGIN_NAMESPACE_ACADO
returnValue addFunction(const ExportFunction &_function)
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const
ExportFunction solveReuseTranspose_full
Allows to export code for a block of statements.
ExportArgument getAddress(const ExportIndex &_rowIdx, const ExportIndex &_colIdx=emptyConstExportIndex) const
virtual returnValue performTransformation(ExportStatementBlock &code, const ExportVariable &from, const ExportVariable &to, const ExportVariable &transf, const ExportIndex &index)
ExportIRK4StageSingleNewton(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
ExportVariable rk_bPerm_trans
ExportFunction & addIndex(const ExportIndex &_index)
#define ACADOERROR(retval)
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 returnValue setupFactorization(ExportFunction &_solve, ExportVariable &_swap, ExportVariable &_determinant, const std::string &absF)