33 #ifndef ACADO_TOOLKIT_CONJUGATE_GRADIENT_MEHTOD_HPP 34 #define ACADO_TOOLKIT_CONJUGATE_GRADIENT_MEHTOD_HPP 98 const int *colIdx_ ) = 0;
158 virtual void multiply(
double *xx ,
double *result ) = 0;
205 #include <acado/sparse_solver/conjugate_gradient_method.ipp> 208 #endif // ACADO_TOOLKIT_CONJUGATE_GRADIENT_METHOD_HPP
virtual returnValue setNumberOfEntries(const int &nDense_)
virtual returnValue getX(double *x_)
virtual ~ConjugateGradientMethod()
Allows to pass back messages to the calling function.
virtual SparseSolver * clone() const =0
ConjugateGradientMethod()
virtual returnValue setMatrix(double *A_)
double scalarProduct(double *aa, double *bb)
virtual returnValue setIndices(const int *rowIdx_, const int *colIdx_)=0
#define CLOSE_NAMESPACE_ACADO
virtual void multiply(double *xx, double *result)=0
virtual returnValue setDimension(const int &n)
virtual returnValue applyPreconditioner(double *b)=0
virtual returnValue solve(double *b)
virtual returnValue setPrintLevel(PrintLevel printLevel_)
Implements a conjugate gradient method as sparse linear algebra solver.
Generic interface for sparse solvers to be coupled with ACADO Toolkit.
#define BEGIN_NAMESPACE_ACADO
virtual returnValue setTolerance(double TOL_)
virtual returnValue applyInversePreconditioner(double *x_)=0
virtual returnValue computePreconditioner(double *A_)=0