1 #ifndef H_MATH_UTILS_GSL 2 #define H_MATH_UTILS_GSL 4 #include <gsl/gsl_math.h> 9 #define gvg gsl_vector_get 10 #define gvs gsl_vector_set 19 void oplus(
const gsl_vector*x1,
const gsl_vector*x2, gsl_vector*res);
20 void ominus(
const gsl_vector*x, gsl_vector*res);
21 void pose_diff(
const gsl_vector*pose2,
const gsl_vector*pose1,gsl_vector*res);
23 void transform(
const gsl_vector*
point2d,
const gsl_vector* pose, gsl_vector*result2d);
26 double distance(
const gsl_vector* a,
const gsl_vector* b);
30 double norm(
const gsl_vector*
p);
double distance_squared(const gsl_vector *a, const gsl_vector *b)
void copy_from_array(gsl_vector *v, double *)
void ominus(const gsl_vector *x, gsl_vector *res)
void pose_diff(const gsl_vector *pose2, const gsl_vector *pose1, gsl_vector *res)
const char * egsl_friendly_pose(val pose)
const char * gsl_friendly_pose(gsl_vector *v)
void vector_to_array(const gsl_vector *v, double *)
gsl_vector * vector_from_array(unsigned int n, double *x)
void gsl_vector_set_nan(gsl_vector *v)
double norm(const gsl_vector *p)
void oplus(const gsl_vector *x1, const gsl_vector *x2, gsl_vector *res)
const char * egsl_friendly_cov(val cov)
void transform(const gsl_vector *point2d, const gsl_vector *pose, gsl_vector *result2d)
double distance(const gsl_vector *a, const gsl_vector *b)