1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <stdlib.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <math.h>
#include "types.h"
void vector_replace(q_t n, double *v1, const double *v2);
void vector_add(q_t n, double *v1, const double *v2);
void vector_subtract(q_t n, double *v1, const double *v2);
double *vector_rotate(q_t n, double *rot, double *vec);
double *vector_rotate_inverse(q_t n, const double *rot, const double *vec);
double vector_dot(q_t n, double *v1, double *v2);
double *orthogonal_rotate(q_t n, double *m1, double *m2);
double *gen_rot(gsl_rng *r, q_t n);
|