Macros | 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.

Macros

#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)
 

Macro Definition 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
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23