solver-tools.c File Reference
#include "postprocess.h"
Include dependency graph for solver-tools.c:
This graph shows which files directly or indirectly include this file:

Defines

#define FIT(i)   gsl_vector_get(s->x, i)
#define ERR(i)   sqrt(gsl_matrix_get(covar,i,i))

Functions

int gsl_linsolve_svd (gsl_matrix *A, gsl_vector *b, gsl_vector *x)
 Linear Algebra: SVD.
int gsl_linsolve_lu (gsl_matrix *A, gsl_vector *b, gsl_vector *x)
 Linear Algebra LU decomposition.
int encaps_gsl_linsolveSVD (vector< vector< double > > &A, vector< double > &b, vector< double > &x)
 SVD solutions.
int encaps_gsl_linsolveLU (double A[], double b[], double x[], int size)
 Encapsule gsl_linsolve_lu.
int solve_gsl_lm (gsl_multifit_function_fdf *f, gsl_vector_view xv, double precision, int nbre_iter, gsl_multifit_fdfsolver *s, gsl_matrix *covar)
void print_results_lm (gsl_multifit_fdfsolver *s, size_t n, size_t p, int status, gsl_matrix *covar)
 Print Least Square result.

Define Documentation

#define ERR (   i)    sqrt(gsl_matrix_get(covar,i,i))

Referenced by print_results_lm().

#define FIT (   i)    gsl_vector_get(s->x, i)

Referenced by print_results_lm().


Function Documentation

int encaps_gsl_linsolveLU ( double  A[],
double  b[],
double  x[],
int  size 
)

Encapsule gsl_linsolve_lu.

References gsl_linsolve_lu().

Here is the call graph for this function:

int encaps_gsl_linsolveSVD ( vector< vector< double > > &  A,
vector< double > &  b,
vector< double > &  x 
)

SVD solutions.

This function takes in data expressed as vectors and solves linear equation Ax-b= 0 using the SVD method

References gsl_linsolve_svd(), vect2double(), and vectormat2double().

Here is the call graph for this function:

int gsl_linsolve_lu ( gsl_matrix *  A,
gsl_vector *  b,
gsl_vector *  x 
)

Linear Algebra LU decomposition.

Solve linear equation A*X-b = 0 uising LU decomposition

Referenced by encaps_gsl_linsolveLU().

Here is the caller graph for this function:

int gsl_linsolve_svd ( gsl_matrix *  A,
gsl_vector *  b,
gsl_vector *  x 
)

Linear Algebra: SVD.

Solve equation A*x -b = 0 using SVD

Referenced by encaps_gsl_linsolveSVD().

Here is the caller graph for this function:

void print_results_lm ( gsl_multifit_fdfsolver *  s,
size_t  n,
size_t  p,
int  status,
gsl_matrix *  covar 
)

Print Least Square result.

Display the result found using Least Squares

References ERR, and FIT.

Referenced by calc_joint_ang(), and get_betas().

Here is the caller graph for this function:

int solve_gsl_lm ( gsl_multifit_function_fdf *  f,
gsl_vector_view  xv,
double  precision,
int  nbre_iter,
gsl_multifit_fdfsolver *  s,
gsl_matrix *  covar 
)

solve lm : rempli s avec la solution et covar avec la covariance a partir de la fonction f, du vecteur initial xv avec la methode de levenberg-marquardt pour une precision et un nombre d'iteration max

calcul de l'erreur

Referenced by calc_joint_ang(), and get_betas().

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Defines