Defines | Functions
gpc.c File Reference
#include <math.h>
#include <gsl/gsl_math.h>
#include "gpc.h"
#include "gpc_utils.h"
Include dependency graph for gpc.c:

Go to the source code of this file.

Defines

#define M(matrix, rows, col)   static gsl_matrix*matrix=0; if(!matrix) matrix = gsl_matrix_alloc(rows,col);
#define MF(matrix)   /*gsl_matrix_free(matrix)*/

Functions

double gpc_error (const struct gpc_corr *co, const double *x)
int gpc_solve (int K, const struct gpc_corr *c, const double *x0, const double *cov_x0, double *x_out)
double gpc_total_error (const struct gpc_corr *co, int n, const double *x)

Define Documentation

#define M (   matrix,
  rows,
  col 
)    static gsl_matrix*matrix=0; if(!matrix) matrix = gsl_matrix_alloc(rows,col);

Definition at line 25 of file gpc.c.

#define MF (   matrix)    /*gsl_matrix_free(matrix)*/

Definition at line 26 of file gpc.c.


Function Documentation

double gpc_error ( const struct gpc_corr co,
const double *  x 
)

Computes error for a single correspondence

Definition at line 285 of file gpc.c.

int gpc_solve ( int  K,
const struct gpc_corr ,
const double *  x0,
const double *  cov_x0,
double *  x 
)

if c[k].valid is 0, the correspondence is not used

Definition at line 29 of file gpc.c.

double gpc_total_error ( const struct gpc_corr co,
int  n,
const double *  x 
)

Definition at line 301 of file gpc.c.



csm_ros
Author(s): Gaƫl Ecorchard , Ivan Dryanovski, William Morris, Andrea Censi
autogenerated on Sat Jun 8 2019 19:52:42