c64a9dc624bcdaaaf1ef7b80ce6af92ffde91d76
[synclust.git] / src / sources / utils / algebra.h
1 #ifndef SYNCLUST_ALGEBRA_H
2 #define SYNCLUST_ALGEBRA_H
3
4 // small useful function to transform a matrix as given by R
5 // into a easier-to-handle one.
6 double* transpose(
7 double* M,
8 int nrow,
9 int ncol
10 );
11
12 // auxiliary to compute euclidian norm
13 double norm2(
14 double* v,
15 int length
16 );
17
18 // auxiliary to compute euclidian distance
19 double distance2(
20 double* v1,
21 double* v2,
22 int length
23 );
24
25 #endif