(not yet documented) More...
#include <acado_csparse.hpp>

Public Member Functions | |
| ACADOcsparse () | |
| ACADOcsparse (const ACADOcsparse &arg) | |
| virtual ACADOcsparse * | clone () const |
| virtual returnValue | getX (double *x_) |
| virtual returnValue | setDimension (const int &n) |
| virtual returnValue | setIndices (const int *rowIdx_, const int *colIdx_) |
| virtual returnValue | setMatrix (double *A_) |
| virtual returnValue | setNumberOfEntries (const int &nDense_) |
| virtual returnValue | setPrintLevel (PrintLevel printLevel_) |
| virtual returnValue | setTolerance (double TOL_) |
| virtual returnValue | solve (double *b) |
| virtual returnValue | solveTranspose (double *b) |
| virtual | ~ACADOcsparse () |
Protected Attributes | |
| int | dim |
| int * | index1 |
| int * | index2 |
| cs_numeric * | N |
| int | nDense |
| PrintLevel | printLevel |
| cs_symbolic * | S |
| double | TOL |
| double * | x |
Default constructor.
Definition at line 52 of file acado_csparse.cpp.
| ACADOcsparse::ACADOcsparse | ( | const ACADOcsparse & | arg | ) |
Copy constructor (deep copy).
Definition at line 65 of file acado_csparse.cpp.
| ACADOcsparse::~ACADOcsparse | ( | ) | [virtual] |
Destructor.
Definition at line 90 of file acado_csparse.cpp.
| ACADOcsparse * ACADOcsparse::clone | ( | ) | const [virtual] |
Clone operator (deep copy).
Implements SparseSolver.
Definition at line 116 of file acado_csparse.cpp.
| returnValue ACADOcsparse::getX | ( | double * | x_ | ) | [virtual] |
Returns the solution of the equation A*x = b if solved.
Implements SparseSolver.
Definition at line 230 of file acado_csparse.cpp.
| returnValue ACADOcsparse::setDimension | ( | const int & | n | ) | [virtual] |
Defines the dimension n of A R^{n n}
Implements SparseSolver.
Definition at line 164 of file acado_csparse.cpp.
| returnValue ACADOcsparse::setIndices | ( | const int * | rowIdx_, |
| const int * | colIdx_ | ||
| ) | [virtual] |
Sets an index list containing the positions of the
non-zero elements in the matrix A.
Implements SparseSolver.
Definition at line 184 of file acado_csparse.cpp.
| returnValue ACADOcsparse::setMatrix | ( | double * | A_ | ) | [virtual] |
Sets the non-zero elements of the matrix A. The double* A
is assumed to contain nDense entries corresponding to
non-zero elements of A.
Implements SparseSolver.
Definition at line 204 of file acado_csparse.cpp.
| returnValue ACADOcsparse::setNumberOfEntries | ( | const int & | nDense_ | ) | [virtual] |
Defines the number of non-zero elements in the
matrix A
Implements SparseSolver.
Definition at line 178 of file acado_csparse.cpp.
| returnValue ACADOcsparse::setPrintLevel | ( | PrintLevel | printLevel_ | ) | [virtual] |
Sets the print level.
Implements SparseSolver.
Definition at line 245 of file acado_csparse.cpp.
| returnValue ACADOcsparse::setTolerance | ( | double | TOL_ | ) | [virtual] |
Sets the required tolerance (accuracy) for the solution of
the linear equation. For large tolerances an iterative
algorithm might converge earlier.
Requires || A*x - b || <= TOL
The norm || . || is possibly scaled by a preconditioner.
Implements SparseSolver.
Definition at line 239 of file acado_csparse.cpp.
| returnValue ACADOcsparse::solve | ( | double * | b | ) | [virtual] |
Solves the system A*x = b for the specified data.
Implements SparseSolver.
Definition at line 122 of file acado_csparse.cpp.
| returnValue ACADOcsparse::solveTranspose | ( | double * | b | ) | [virtual] |
Solves the system A^T*x = b for the specified data.
Reimplemented from SparseSolver.
Definition at line 143 of file acado_csparse.cpp.
int ACADOcsparse::dim [protected] |
Definition at line 181 of file acado_csparse.hpp.
int* ACADOcsparse::index1 [protected] |
Definition at line 183 of file acado_csparse.hpp.
int * ACADOcsparse::index2 [protected] |
Definition at line 183 of file acado_csparse.hpp.
cs_numeric* ACADOcsparse::N [protected] |
Definition at line 195 of file acado_csparse.hpp.
int ACADOcsparse::nDense [protected] |
Definition at line 182 of file acado_csparse.hpp.
PrintLevel ACADOcsparse::printLevel [protected] |
Definition at line 199 of file acado_csparse.hpp.
cs_symbolic* ACADOcsparse::S [protected] |
Definition at line 194 of file acado_csparse.hpp.
double ACADOcsparse::TOL [protected] |
Definition at line 198 of file acado_csparse.hpp.
double* ACADOcsparse::x [protected] |
Definition at line 189 of file acado_csparse.hpp.