62 for( run1 = 0; run1 <
dim; run1++ ){
70 for( run1 = 0; run1 <
dim; run1++ ){
72 for( run2 = 0; run2 < nIndex[run1]; run2++ )
80 for( run1 = 0; run1 <
dim; run1++ ){
97 for( run1 = 0; run1 <
dim; run1++ )
149 for( run1 = 0; run1 <
dim; run1++ ){
152 bound = dim*(run1+1);
154 while( counter <
nDense ){
156 if( indices[counter] >= bound )
break;
160 nIndex[run1] = counter - counter0;
164 for( run1 = 0; run1 <
dim; run1++ )
165 delete[]
index[run1];
172 for( run1 = 0; run1 <
dim; run1++ ){
174 for( run2 = 0; run2 < nIndex[run1]; run2++ ){
203 for( i = 0; i <
dim; i++ ){
207 for( j = 0; j <
nIndex[i]; j++ ){
215 for( i = 0; i <
dim; i++ ){
217 for( j = 0; j <
nIndex[i]; j++ ){
231 for( i = 0; i <
dim; i++ ){
238 for( i = 0; i <
dim; i++ ){
240 for( j = 0; j <
nIndex[i]; j++ ){
246 for( i = 0; i <
dim; i++ ){
252 for( i = 0; i <
dim; i++ ){
253 for( j = 0; j <
nIndex[i]; j++ ){
268 for( i = 0; i <
dim; i++ )
274 for( i = 0; i <
dim; i++ )
277 for( i = 0; i <
dim; i++ ){
279 for( j = 0; j <
nIndex[i]; j++ ){
294 for( run1 = 0; run1 <
dim; run1++ )
IntermediateState sqrt(const Expression &arg)
Allows to pass back messages to the calling function.
#define CLOSE_NAMESPACE_ACADO
virtual SparseSolver * clone() const
Implements a conjugate gradient method as sparse linear algebra solver for non-symmetric linear syste...
virtual void multiply(double *xx, double *result)
virtual returnValue computePreconditioner(double *A_)
virtual returnValue setIndices(const int *rowIdx_, const int *colIdx_)
virtual returnValue applyPreconditioner(double *b)
Implements a conjugate gradient method as sparse linear algebra solver.
Generic interface for sparse solvers to be coupled with ACADO Toolkit.
NormalConjugateGradientMethod()
#define BEGIN_NAMESPACE_ACADO
virtual returnValue applyInversePreconditioner(double *x_)
virtual ~NormalConjugateGradientMethod()
#define ACADOERROR(retval)