Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > Vthread > Vthread__KMeans__Bench
diff kmeans.h @ 0:e69e4c2d612a
Initial pthreads version
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 03 Aug 2011 19:30:34 +0200 |
| parents | |
| children | 8e7bdab2840f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/kmeans.h Wed Aug 03 19:30:34 2011 +0200 1.3 @@ -0,0 +1,23 @@ 1.4 +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 1.5 +/* File: kmeans.h (an OpenMP version) */ 1.6 +/* Description: header file for a simple k-means clustering program */ 1.7 +/* */ 1.8 +/* Author: Wei-keng Liao */ 1.9 +/* ECE Department Northwestern University */ 1.10 +/* email: wkliao@ece.northwestern.edu */ 1.11 +/* Copyright, 2005, Wei-keng Liao */ 1.12 +/* */ 1.13 +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 1.14 + 1.15 +#ifndef _H_KMEANS 1.16 +#define _H_KMEANS 1.17 + 1.18 +#include <assert.h> 1.19 + 1.20 +double** pthreads_kmeans(int, double**, int, int, int, double, int*); 1.21 + 1.22 +double** file_read(int, char*, int*, int*); 1.23 + 1.24 +double wtime(void); 1.25 + 1.26 +#endif
