52 const int numberOfVariableTypes = 11 ;
58 cIdx = (
int**)calloc(
nC,
sizeof(
int*) );
71 for( run1 = 0; run1 < numberOfVariableTypes; run1++ ){
95 const int numberOfVariableTypes = 11 ;
97 for( run1 = 0; run1 < numberOfVariableTypes; run1++ ){
109 for( run1 = 0; run1 <
nC; run1++ ){
110 if(
cIdx[run1] != 0 )
146 if( arg.
comp != NULL ){
162 const int numberOfVariableTypes = 11 ;
171 for( run1 = 0; run1 < numberOfVariableTypes; run1++ ){
197 cIdx = (
int**)calloc(
nC,
sizeof(
int*) );
200 for( run1 = 0; run1 <
nC; run1++ ){
203 if( arg.
cIdx[run1] != 0 ){
205 for( run2 = 0; run2 < (int) cDim[run1]; run2++ )
206 cIdx[run1][run2] = arg.
cIdx[run1][run2];
236 const int numberOfVariableTypes = 11 ;
238 for( run1 = 0; run1 < numberOfVariableTypes; run1++ ){
255 for( run1 = 0; run1 <
nC; run1++ ){
256 if(
cIdx[run1] != 0 )
268 for( run1 = 0; run1 < numberOfVariableTypes; run1++ ){
295 cIdx = (
int**)calloc( nC,
sizeof(
int*) );
298 for( run1 = 0; run1 <
nC; run1++ ){
301 if( arg.
cIdx[run1] != 0 ){
303 for( run2 = 0; run2 < (int) cDim[run1]; run2++ )
304 cIdx[run1][run2] = arg.
cIdx[run1][run2];
330 if( arg.
comp != NULL ){
377 comp_ [*n] =
comp[*n];
387 switch(variableType_){
395 (index_+1)*
sizeof(int));
397 (index_+1)*
sizeof(double));
420 (index_+1)*
sizeof(int));
422 (index_+1)*
sizeof(double));
445 (index_+1)*
sizeof(int));
447 (index_+1)*
sizeof(double));
470 (index_+1)*
sizeof(int));
472 (index_+1)*
sizeof(double));
495 (index_+1)*
sizeof(int));
497 (index_+1)*
sizeof(double));
520 (index_+1)*
sizeof(int));
522 (index_+1)*
sizeof(double));
544 (index_+1)*
sizeof(int));
546 (index_+1)*
sizeof(double));
569 (index_+1)*
sizeof(int));
571 (index_+1)*
sizeof(double));
594 (index_+1)*
sizeof(int));
596 (index_+1)*
sizeof(double));
620 (index_+1)*
sizeof(int));
622 (index_+1)*
sizeof(double));
644 (index_+1)*
sizeof(int));
646 (index_+1)*
sizeof(double));
675 if(
nC <= (
int) ID ){
679 cIdx = (
int**)realloc(
cIdx,(ID+1)*
sizeof(
int*));
682 for( run1 = nnn; run1 < ID+1; run1++ ){
690 cDim[ID] = dimension;
691 cIdx[ID] =
new int[dimension];
692 for( run1 = 0; run1 < dimension; run1++ ){
701 for( run1 = 0; run1 <
cDim[ID]; run1++ )
702 idx[run1] =
cIdx[ID][run1];
710 switch(variableType_){
885 const int numberOfVariableTypes = 11;
889 for( run1 = 0; run1 < numberOfVariableTypes; run1++ ){
Abstract base class for all scalar-valued symbolic operators.
BooleanType ** entryExists
SymbolicIndexList & operator=(const SymbolicIndexList &arg)
Allows to pass back messages to the calling function.
virtual Operator * clone() const =0
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
BooleanType determineCExpressionIndices(uint dimension, uint ID, int *idx)
#define CLOSE_NAMESPACE_ACADO
Manages the indices of SymbolicVariables.
int determineVariableIndex(VariableType variableType_, int index_, double scale)
#define BEGIN_NAMESPACE_ACADO
returnValue clearVariableIndexList()
BooleanType addNewElement(VariableType variableType_, int index_)
returnValue getOperators(Operator **sub, int *comp_, int *n)
#define ACADOERROR(retval)
int addOperatorPointer(Operator *intermediateOperator, int comp_)