first commit
[synclust.git] / src / sources / utils / algebra.h
CommitLineData
15d1825d
BA
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.
6double* transpose(
7 double* M,
8 int nrow,
9 int ncol
10);
11
12// auxiliary to compute euclidian norm
13double norm2(
14 double* v,
15 int length
16);
17
18// auxiliary to compute euclidian distance
19double distance2(
20 double* v1,
21 double* v2,
22 int length
23);
24
25#endif