35 #ifndef QPOASES_UTILS_H 36 #define QPOASES_UTILS_H 54 const int*
const V_idx
76 const int*
const ROW_idx,
77 const int*
const COL_idx
120 const char* datafilename
129 const char* datafilename
138 const char* datafilename
148 const char* datafilename,
157 const char* datafilename,
166 const char* datafilename,
186 const int*
const data,
353 void gdb_printmat(
const char *fname,
362 #if defined(__DSPACE__) || defined(__XPCTARGET__) 363 void __cxa_pure_virtual(
void );
418 return (y<x) ? x :
y;
429 return (y>x) ? x :
y;
441 return (y<x) ? x :
y;
443 return (y<x) ? x :
y;
457 return (y>x) ? x :
y;
459 return (y>x) ? x :
y;
472 return (x>=0.0) ? x : -x;
static real_t qpOASES_getSign(real_t arg)
IntermediateState sqrt(const Expression &arg)
static BooleanType qpOASES_isEqual(real_t x, real_t y, real_t TOL)
returnValue qpOASES_printNV(const real_t *const v, int n, const char *name)
returnValue qpOASES_normaliseConstraints(int nV, int nC, real_t *A, real_t *lbA, real_t *ubA, int type)
returnValue qpOASES_getKktViolation(int nV, int nC, const real_t *const H, const real_t *const g, const real_t *const A, const real_t *const lb, const real_t *const ub, const real_t *const lbA, const real_t *const ubA, const real_t *const x, const real_t *const y, real_t *const _stat, real_t *const feas, real_t *const cmpl)
returnValue qpOASES_writeIntoFileV(const real_t *const data, int n, const char *datafilename, BooleanType append)
BEGIN_NAMESPACE_QPOASES returnValue qpOASES_printV(const real_t *const v, int n)
static real_t qpOASES_getMin(real_t x, real_t y)
returnValue qpOASES_printI(const int *const _index, int n)
int qpOASES_getSimpleStatus(returnValue returnvalue, BooleanType doPrintStatus)
Allows to pass back messages to the calling function.
returnValue qpOASES_printM(const real_t *const M, int nrow, int ncol)
real_t qpOASES_getCPUtime()
returnValue qpOASES_readFromFileV(real_t *data, int n, const char *datafilename)
static BooleanType qpOASES_isZero(real_t x, real_t TOL)
returnValue qpOASES_readFromFileM(real_t *data, int nrow, int ncol, const char *datafilename)
returnValue qpOASES_writeIntoFileI(const int *const integer, int n, const char *datafilename, BooleanType append)
static real_t qpOASES_getAbs(real_t x)
returnValue qpOASES_writeIntoMatFileI(FILE *const matFile, const int *const data, int nRows, int nCols, const char *name)
static int qpOASES_getMinI(int x, int y)
returnValue qpOASES_getKktViolationSB(int nV, const real_t *const H, const real_t *const g, const real_t *const lb, const real_t *const ub, const real_t *const x, const real_t *const y, real_t *const _stat, real_t *const feas, real_t *const cmpl)
static real_t qpOASES_getMax(real_t x, real_t y)
returnValue qpOASES_myPrintf(const char *s)
static real_t qpOASES_getSqrt(real_t x)
returnValue qpOASES_writeIntoFileM(const real_t *const data, int nrow, int ncol, const char *datafilename, BooleanType append)
real_t qpOASES_getNorm(const real_t *const v, int n, int type)
returnValue qpOASES_writeIntoMatFile(FILE *const matFile, const real_t *const data, int nRows, int nCols, const char *name)
#define END_NAMESPACE_QPOASES
returnValue qpOASES_printPM(const real_t *const M, int nrow, int ncol, const int *const ROW_idx, const int *const COL_idx)
returnValue qpOASES_printNM(const real_t *const M, int nrow, int ncol, const char *name)
returnValue qpOASES_printNI(const int *const _index, int n, const char *name)
static int qpOASES_getMaxI(int x, int y)
returnValue qpOASES_convertPrintLevelToString(PrintLevel value, char *const string)
#define BEGIN_NAMESPACE_QPOASES
returnValue qpOASES_readFromFileI(int *data, int n, const char *datafilename)
returnValue qpOASES_printCopyrightNotice()
returnValue qpOASES_convertSubjectToStatusToString(SubjectToStatus value, char *const string)
returnValue qpOASES_convertBooleanTypeToString(BooleanType value, char *const string)
returnValue qpOASES_printPV(const real_t *const v, int n, const int *const V_idx)