Stable release of RBC
[RBC.git] / utils.h
1 #ifndef UTILS_H
2 #define UTILS_H
3
4 #include "defs.h"
5
6 void swap(int*,int*);
7 void randPerm(int,int*);
8 void subRandPerm(int,int,int*);
9 int randBetween(int,int);
10 void printMat(matrix);
11 void printMatWithIDs(matrix,int*);
12 void printCharMat(charMatrix);
13 void printVector(real*,int);
14 void copyVector(real*,real*,int);
15 real distL1(matrix,matrix,int,int);
16 double timeDiff(struct timeval,struct timeval);
17 void copyMat(matrix*,matrix*);
18 #endif