63 const std::string& _prefix
78 const std::string& _prefix,
91 const std::string& _prefix
105 const std::string& _prefix
154 const std::string& _prefix
171 const std::string& _prefix,
186 return (*this)->getGivenMatrix()(rowIdx, colIdx);
193 return (*this)->getGivenMatrix()( totalIdx );
201 return (*this)->isZero(rowIdx, colIdx);
209 return (*this)->isOne(rowIdx, colIdx);
217 return (*this)->isGiven(rowIdx, colIdx);
223 return (*this)->isGiven();
231 return (*this)->get(rowIdx, colIdx);
236 return (*this)->getNumRows();
241 return (*this)->getNumCols();
247 return (*this)->getDim();
398 return (*this)->
getRow( idx );
405 return (*this)->
getCol( idx );
413 return (*this)->
getRows(idx1, idx2);
421 return (*this)->
getCols(idx1, idx2);
431 return (*this)->
getSubMatrix(rowIdx1, rowIdx2, colIdx1, colIdx2);
438 return (*this)->
getSubMatrix(rowIdx, rowIdx + 1, colIdx, colIdx + 1);
456 return (*this)->isVector();
462 return (*this)->getGivenMatrix();
468 return (*this)->
print();
473 return (*this)->isSubMatrix();
478 return (*this)->isDiagonal();
ExportStatementOperator op2
void assignNode(SharedObjectNode *node)
Assign the node to a node class pointer (or null)
ExportVariable getRow(const ExportIndex &idx) const
ExportVariable getRow(const ExportIndex &idx) const
ExportVariable makeRowVector() const
ExportVariableInternal * operator->()
ExportVariable clone() const
ExportVariable getTranspose() const
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())
bool isOne(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
Allows to pass back messages to the calling function.
std::shared_ptr< GenericMatrix< double > > DMatrixPtr
friend ExportArithmeticStatement operator+=(const ExportVariable &arg1, const ExportVariable &arg2)
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
void setAll(const T &_value)
ExportVariable getRows(const ExportIndex &idx1, const ExportIndex &idx2) const
const DMatrix & getGivenMatrix() const
ExportStatementOperator op1
ExportVariable getElement(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
Defines a matrix-valued variable to be used for exporting code.
#define CLOSE_NAMESPACE_ACADO
void simpleForward(const DMatrix &_value)
ExportVariable getSubMatrix(const ExportIndex &rowIdx1, const ExportIndex &rowIdx2, const ExportIndex &colIdx1, const ExportIndex &colIdx2) const
GenericMatrix< double > DMatrix
Defines a scalar-valued index variable to be used for exporting code.
static BEGIN_NAMESPACE_ACADO const double undefinedEntry
Allows to export code of different arithmetic statements.
virtual ~ExportVariable()
friend ExportArithmeticStatement operator-=(const ExportVariable &arg1, const ExportVariable &arg2)
friend ExportArithmeticStatement operator^(const ExportVariable &arg1, const ExportVariable &arg2)
const SharedObjectNode * get() const
Get a const pointer to the node.
double operator()(uint rowIdx, uint colIdx) const
ExportVariable getCols(const ExportIndex &idx1, const ExportIndex &idx2) const
friend ExportArithmeticStatement operator+(const ExportVariable &arg1, const ExportVariable &arg2)
ExportArgumentInternal * operator->()
ExportVariable makeRowVector() const
ExportVariable getTranspose() const
friend ExportArithmeticStatement operator==(const ExportVariable &arg1, const ExportVariable &arg2)
virtual uint getDim() const
bool isZero(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
bool isNull() const
Is a null pointer?
virtual uint getNumCols() const
ExportVariable getRows(const ExportIndex &idx1, const ExportIndex &idx2) const
ExportVariable getSubMatrix(const ExportIndex &_rowIdx1, const ExportIndex &_rowIdx2, const ExportIndex &_colIdx1, const ExportIndex &_colIdx2) const
#define BEGIN_NAMESPACE_ACADO
friend ExportArithmeticStatement operator-(const ExportVariable &arg1, const ExportVariable &arg2)
returnValue print() const
ExportVariable makeColVector() const
ExportVariable getCols(const ExportIndex &idx1, const ExportIndex &idx2) const
ExportVariable getCol(const ExportIndex &idx) const
friend ExportArithmeticStatement operator*(const ExportVariable &arg1, const ExportVariable &arg2)
ExportVariable getCol(const ExportIndex &idx) const
Defines a matrix-valued variable to be used for exporting code.
ExportVariable makeColVector() const
virtual uint getNumRows() const