31 #ifndef ACADO_TOOLKIT_EXPORT_VARIABLE_HPP 32 #define ACADO_TOOLKIT_EXPORT_VARIABLE_HPP 83 bool _callItByValue =
false,
84 const std::string& _prefix = std::string()
101 bool _callItByValue =
false,
102 const std::string& _prefix = std::string(),
120 bool _callItByValue =
false,
121 const std::string& _prefix = std::string()
137 bool _callItByValue =
false,
138 const std::string& _prefix = std::string()
144 template<
typename Derived>
182 bool _callItByValue =
false,
183 const std::string& _prefix = std::string()
202 bool _callItByValue =
false,
203 const std::string& _prefix = std::string(),
536 #endif // ACADO_TOOLKIT_EXPORT_VARIABLE_HPP
ExportVariable getRow(const ExportIndex &idx) 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
const DMatrix & getGivenMatrix() const
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.
Defines a matrix-valued variable that can be passed as argument to exported functions.
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)
static const ExportVariable emptyConstExportVariable
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)
ExportVariable makeRowVector() const
ExportVariable(const Eigen::MatrixBase< Derived > &_data)
friend ExportArithmeticStatement operator==(const ExportVariable &arg1, const ExportVariable &arg2)
virtual uint getDim() const
bool isZero(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
virtual uint getNumCols() const
ExportVariable getRows(const ExportIndex &idx1, const ExportIndex &idx2) const
#define BEGIN_NAMESPACE_ACADO
friend ExportArithmeticStatement operator-(const ExportVariable &arg1, const ExportVariable &arg2)
returnValue print() const
Base class for all dense matrices, vectors, and expressions.
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