64 const std::string& _prefix
115 if (withDataStruct ==
true)
138 return data->getNumRows( );
144 return data->getNumCols( );
150 return data->getDim( );
186 const std::string& _realString,
187 const std::string& _intString,
205 if (
data->getNumCols() > 1 &&
data->getNumRows() > 1)
207 stream <<
"/** " <<
"Matrix of size: " <<
data->getNumRows() <<
" x " <<
data->getNumCols() <<
" (row major format)";
211 if (
data->getNumCols() == 1)
212 stream <<
"/** " <<
"Column vector of size: " <<
data->getNumRows();
214 stream <<
"/** " <<
"Row vector of size: " <<
data->getNumCols();
231 stream <<
" = " << endl;
232 IMatrix(
data->cast<
int>() ).print(stream,
"",
"{ ",
" };\n", 5, 0,
", ",
", \n");
236 stream <<
" = " << endl;
237 data->print(stream,
"",
"{ ",
" };\n", 1, 16,
", ",
", \n");
244 stream <<
" = " << endl;
250 IMatrix(
data->cast<
int>() ).print(stream,
"",
"{ ",
" };\n", 5, 0,
", ",
", \n");
255 data->print(stream,
"",
"{ ",
" };\n", 1, 16,
", ",
", \n");
275 return data->getNumCols( );
virtual returnValue exportDataDeclaration(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
ExportArgument getAddress(const ExportIndex &rowIdx, const ExportIndex &colIdx=emptyConstExportIndex) const
returnValue callByValue()
virtual ExportIndex getTotalIdx(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
virtual ~ExportArgumentInternal()
virtual uint getColDim() const
BooleanType acadoIsEqual(double x, double y, double TOL)
virtual ExportArgumentInternal * clone() const
Make a deep copy of the instance.
std::string getFullName() const
virtual void deepCopyMembers(std::map< CasADi::SharedObjectNode *, CasADi::SharedObject > &already_copied)
Allows to pass back messages to the calling function.
std::shared_ptr< GenericMatrix< double > > DMatrixPtr
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
std::string getTypeString(const std::string &_realString="real_t", const std::string &_intString="int") const
#define CLOSE_NAMESPACE_ACADO
GenericMatrix< double > DMatrix
Defines a scalar-valued index variable to be used for exporting code.
virtual bool isGiven() const
Defines a matrix-valued variable that can be passed as argument to exported functions.
static const double undefinedEntry
virtual uint getNumRows() const
virtual uint getDim() const
const std::string getAddressString(bool withDataStruct=true) const
Defines a matrix-valued variable that can be passed as argument to exported functions.
ExportType getType() const
GenericMatrix< int > IMatrix
std::string getName() const
const std::string get() const
int getGivenValue() const
ExportStruct getDataStruct() const
#define BEGIN_NAMESPACE_ACADO
virtual uint getNumCols() const
#define ACADOERROR(retval)
bool isCalledByValue() const