projects
/
synclust.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
first commit
[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