37 #ifndef QPOASES_MATRICES_HPP 38 #define QPOASES_MATRICES_HPP 41 #ifdef __USE_SINGLE_PRECISION__ 69 void dgemm_ (
const char*,
const char*,
const unsigned long*,
const unsigned long*,
const unsigned long*,
70 const double*,
const double*,
const unsigned long*,
const double*,
const unsigned long*,
71 const double*,
double*,
const unsigned long* );
73 void sgemm_ (
const char*,
const char*,
const unsigned long*,
const unsigned long*,
const unsigned long*,
74 const float*,
const float*,
const unsigned long*,
const float*,
const unsigned long*,
75 const float*,
float*,
const unsigned long* );
78 void dsyr_ (
const char *,
const unsigned long *,
const double *,
const double *,
79 const unsigned long *,
double *,
const unsigned long *);
81 void ssyr_ (
const char *,
const unsigned long *,
const float *,
const float *,
82 const unsigned long *,
float *,
const unsigned long *);
85 void dsyr2_ (
const char *,
const unsigned long *,
const double *,
const double *,
86 const unsigned long *,
const double *,
const unsigned long *,
double *,
const unsigned long *);
88 void ssyr2_ (
const char *,
const unsigned long *,
const float *,
const float *,
89 const unsigned long *,
const float *,
const unsigned long *,
float *,
const unsigned long *);
92 void dpotrf_ (
const char *,
const unsigned long *,
double *,
const unsigned long *,
long * );
94 void spotrf_ (
const char *,
const unsigned long *,
float *,
const unsigned long *,
long * );
122 virtual void free( ) = 0;
286 ) : nRows(m), nCols(n), leaDim(lD), val(v) {}
293 virtual void free( );
471 virtual void free( );
556 long *createDiagInfo();
virtual returnValue getCol(int cNum, const Indexlist *const irows, real_t alpha, real_t *col) const =0
Interfaces matrix-vector operations tailored to symmetric sparse matrices.
void dgemm_(const char *, const char *, const unsigned long *, const unsigned long *, const unsigned long *, const double *, const double *, const unsigned long *, const double *, const unsigned long *, const double *, double *, const unsigned long *)
virtual real_t * full() const =0
SymDenseMat(int m, int n, int lD, real_t *v)
virtual returnValue print() const =0
virtual Matrix * duplicate() const =0
void sgemm_(const char *, const char *, const unsigned long *, const unsigned long *, const unsigned long *, const float *, const float *, const unsigned long *, const float *, const unsigned long *, const float *, float *, const unsigned long *)
virtual BooleanType isDiag() const =0
void dsyr_(const char *, const unsigned long *, const double *, const double *, const unsigned long *, double *, const unsigned long *)
Allows to pass back messages to the calling function.
DenseMatrix(int m, int n, int lD, real_t *v)
Interfaces matrix-vector operations tailored to symmetric dense matrices.
virtual returnValue transTimes(int xN, real_t alpha, const real_t *x, int xLD, real_t beta, real_t *y, int yLD) const =0
void ssyr2_(const char *, const unsigned long *, const float *, const float *, const unsigned long *, const float *, const unsigned long *, float *, const unsigned long *)
Interfaces matrix-vector operations tailored to general dense matrices.
void dpotrf_(const char *, const unsigned long *, double *, const unsigned long *, long *)
void dsyr2_(const char *, const unsigned long *, const double *, const double *, const unsigned long *, const double *, const unsigned long *, double *, const unsigned long *)
virtual returnValue times(int xN, real_t alpha, const real_t *x, int xLD, real_t beta, real_t *y, int yLD) const =0
Interfaces matrix-vector operations tailored to general sparse matrices.
Abstract base class for interfacing tailored matrix-vector operations.
#define END_NAMESPACE_QPOASES
BooleanType needToFreeMemory() const
virtual real_t diag(int i) const =0
void spotrf_(const char *, const unsigned long *, float *, const unsigned long *, long *)
SymSparseMat(long nr, long nc, long *r, long *c, real_t *v, long *d=0)
Stores and manages index lists.
virtual returnValue addToDiag(real_t alpha)=0
#define BEGIN_NAMESPACE_QPOASES
virtual returnValue getRow(int rNum, const Indexlist *const icols, real_t alpha, real_t *row) const =0
void ssyr_(const char *, const unsigned long *, const float *, const float *, const unsigned long *, float *, const unsigned long *)
SymSparseMat(int nr, int nc, int ld, const real_t *const v)
Abstract base class for interfacing matrix-vector operations tailored to symmetric matrices...