Interfaces matrix-vector operations tailored to symmetric dense matrices. More...
#include <Matrices.hpp>
Public Member Functions | |
virtual returnValue | bilinear (const Indexlist *const icols, int xN, const real_t *x, int xLD, real_t *y, int yLD) const |
virtual returnValue | bilinear (const Indexlist *const icols, int_t xN, const real_t *x, int_t xLD, real_t *y, int_t yLD) const |
virtual Matrix * | duplicate () const |
virtual Matrix * | duplicate () const |
virtual SymmetricMatrix * | duplicateSym () const |
SymDenseMat () | |
SymDenseMat (int m, int n, int lD, real_t *v) | |
SymDenseMat () | |
SymDenseMat (int_t m, int_t n, int_t lD, real_t *v) | |
virtual | ~SymDenseMat () |
Public Member Functions inherited from DenseMatrix | |
virtual returnValue | addToDiag (real_t alpha) |
virtual returnValue | addToDiag (real_t alpha) |
DenseMatrix () | |
DenseMatrix (int m, int n, int lD, real_t *v) | |
DenseMatrix () | |
DenseMatrix (int_t m, int_t n, int_t lD, real_t *v) | |
virtual real_t | diag (int i) const |
virtual real_t | diag (int_t i) const |
virtual void | free () |
virtual void | free () |
virtual real_t * | full () const |
virtual returnValue | getCol (int cNum, const Indexlist *const irows, real_t alpha, real_t *col) const |
virtual returnValue | getCol (int_t cNum, const Indexlist *const irows, real_t alpha, real_t *col) const |
virtual real_t | getNorm (int_t type=2) const |
virtual returnValue | getRow (int rNum, const Indexlist *const icols, real_t alpha, real_t *row) const |
virtual returnValue | getRow (int_t rNum, const Indexlist *const icols, real_t alpha, real_t *row) const |
virtual real_t | getRowNorm (int_t rNum, int_t type=2) const |
virtual returnValue | getSparseSubmatrix (int_t irowsLength, const int_t *const irowsNumber, int_t icolsLength, const int_t *const icolsNumber, int_t rowoffset, int_t coloffset, int_t &numNonzeros, int_t *irn, int_t *jcn, real_t *avals, BooleanType only_lower_triangular=BT_FALSE) const |
virtual BooleanType | isDiag () const |
virtual BooleanType | isDiag () const |
virtual returnValue | print () const |
virtual returnValue | print (const char *name=0) const |
returnValue | times (int xN, real_t alpha, const real_t *x, int xLD, real_t beta, real_t *y, int yLD) const |
virtual returnValue | times (const Indexlist *const irows, const Indexlist *const icols, int xN, real_t alpha, const real_t *x, int xLD, real_t beta, real_t *y, int yLD, BooleanType yCompr=BT_TRUE) const |
virtual returnValue | times (int_t xN, real_t alpha, const real_t *x, int_t xLD, real_t beta, real_t *y, int_t yLD) const |
virtual returnValue | times (const Indexlist *const irows, const Indexlist *const icols, int_t xN, real_t alpha, const real_t *x, int_t xLD, real_t beta, real_t *y, int_t yLD, BooleanType yCompr=BT_TRUE) const |
returnValue | transTimes (int xN, real_t alpha, const real_t *x, int xLD, real_t beta, real_t *y, int yLD) const |
virtual returnValue | transTimes (const Indexlist *const irows, const Indexlist *const icols, int xN, real_t alpha, const real_t *x, int xLD, real_t beta, real_t *y, int yLD) const |
virtual returnValue | transTimes (int_t xN, real_t alpha, const real_t *x, int_t xLD, real_t beta, real_t *y, int_t yLD) const |
virtual returnValue | transTimes (const Indexlist *const irows, const Indexlist *const icols, int_t xN, real_t alpha, const real_t *x, int_t xLD, real_t beta, real_t *y, int_t yLD) const |
virtual returnValue | writeToFile (FILE *output_file, const char *prefix) const |
virtual | ~DenseMatrix () |
virtual | ~DenseMatrix () |
Public Member Functions inherited from Matrix | |
void | doFreeMemory () |
void | doFreeMemory () |
void | doNotFreeMemory () |
void | doNotFreeMemory () |
virtual returnValue | getSparseSubmatrix (const Indexlist *const irows, const Indexlist *const icols, int_t rowoffset, int_t coloffset, int_t &numNonzeros, int_t *irn, int_t *jcn, real_t *avals, BooleanType only_lower_triangular=BT_FALSE) const |
virtual returnValue | getSparseSubmatrix (const Indexlist *const irows, int_t idx_icol, int_t rowoffset, int_t coloffset, int_t &numNonzeros, int_t *irn, int_t *jcn, real_t *avals, BooleanType only_lower_triangular=BT_FALSE) const |
virtual returnValue | getSparseSubmatrix (int_t idx_row, const Indexlist *const icols, int_t rowoffset, int_t coloffset, int_t &numNonzeros, int_t *irn, int_t *jcn, real_t *avals, BooleanType only_lower_triangular=BT_FALSE) const |
Matrix () | |
Matrix () | |
BooleanType | needToFreeMemory () const |
BooleanType | needToFreeMemory () const |
virtual | ~Matrix () |
virtual | ~Matrix () |
Public Member Functions inherited from SymmetricMatrix | |
SymmetricMatrix () | |
virtual | ~SymmetricMatrix () |
Additional Inherited Members | |
Public Attributes inherited from DenseMatrix | |
real_t | val [NVCMAX *NVMAX] |
Protected Attributes inherited from DenseMatrix | |
int | leaDim |
int_t | leaDim |
int | nCols |
int_t | nCols |
int | nRows |
int_t | nRows |
real_t * | val |
Protected Attributes inherited from Matrix | |
BooleanType | freeMemory |
Interfaces matrix-vector operations tailored to symmetric dense matrices.
Symmetric dense matrix class.
Symmetric dense matrix class.
Definition at line 404 of file qpOASES-3.0beta/include/qpOASES/Matrices.hpp.
|
inline |
Default constructor.
Definition at line 408 of file qpOASES-3.0beta/include/qpOASES/Matrices.hpp.
|
inline |
Constructor from vector of values.
m | Number of rows. |
n | Number of columns. |
lD | Leading dimension. |
v | Values. |
Definition at line 411 of file qpOASES-3.0beta/include/qpOASES/Matrices.hpp.
|
inline |
Default constructor.
Definition at line 560 of file qpOASES-3.2.0/include/qpOASES/Matrices.hpp.
Constructor from vector of values.
m | Number of rows. |
n | Number of columns. |
lD | Leading dimension. |
v | Values. |
Definition at line 563 of file qpOASES-3.2.0/include/qpOASES/Matrices.hpp.
|
inlinevirtual |
Destructor.
Definition at line 570 of file qpOASES-3.2.0/include/qpOASES/Matrices.hpp.
|
virtual |
Compute bilinear form y = x'*H*x using submatrix given by index list.
icols | Index list specifying columns of x. |
xN | Number of vectors to multiply. |
x | Input vector to be multiplied (uncompressed). |
xLD | Leading dimension of input x. |
y | Output vector of results (compressed). |
yLD | Leading dimension of output y. |
Implements SymmetricMatrix.
Definition at line 445 of file qpOASES-3.0beta/src/Matrices.cpp.
|
virtual |
Compute bilinear form y = x'*H*x using submatrix given by index list.
icols | Index list specifying columns of x. |
xN | Number of vectors to multiply. |
x | Input vector to be multiplied (uncompressed). |
xLD | Leading dimension of input x. |
y | Output vector of results (compressed). |
yLD | Leading dimension of output y. |
Implements SymmetricMatrix.
|
virtual |
Returns a deep-copy of the Matrix object.
Reimplemented from DenseMatrix.
Definition at line 424 of file qpOASES-3.0beta/src/Matrices.cpp.
|
virtual |
Returns a deep-copy of the Matrix object.
Reimplemented from DenseMatrix.
|
virtual |
Returns a deep-copy of the SymmetricMatrix object.
Implements SymmetricMatrix.
Definition at line 598 of file qpOASES-3.2.0/src/Matrices.cpp.