updated text files
[RBC.git] / utils.h
1 /* This file is part of the Random Ball Cover (RBC) library.
2 * (C) Copyright 2010, Lawrence Cayton [lcayton@tuebingen.mpg.de]
3 */
4
5 #ifndef UTILS_H
6 #define UTILS_H
7
8 #include "defs.h"
9
10 void swap(unint*,unint*);
11 void randPerm(unint,unint*);
12 void subRandPerm(unint,unint,unint*);
13 unint randBetween(unint,unint);
14 void printMat(matrix);
15 void printMatWithIDs(matrix,unint*);
16 void printCharMat(charMatrix);
17 void printIntMat(intMatrix);
18 void printVector(real*,unint);
19 void copyVector(real*,real*,unint);
20 real distVec(matrix,matrix,unint,unint);
21 double timeDiff(struct timeval,struct timeval);
22 void copyMat(matrix*,matrix*);
23 void initMat(matrix*,unint,unint);
24 void initIntMat(intMatrix*,unint,unint);
25 size_t sizeOfMatB(matrix);
26 size_t sizeOfIntMatB(intMatrix);
27 size_t sizeOfMat(matrix);
28 size_t sizeOfIntMat(intMatrix);
29 #endif