projects
/
epclust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX: C code (double, float, ...) + wrapper (read/write data, get medoids)
[epclust.git]
/
code
/
stage1
/
src
/
MPI_Main
/
slave.c
diff --git
a/code/stage1/src/MPI_Main/slave.c
b/code/stage1/src/MPI_Main/slave.c
index
d9b0c47
..
e66f599
100644
(file)
--- a/
code/stage1/src/MPI_Main/slave.c
+++ b/
code/stage1/src/MPI_Main/slave.c
@@
-24,7
+24,7
@@
static Result_t* do_work(Work_t* work)
// nbReducedCoordinates = smallest power of 2 which is above nbValues
uint32_t nbReducedCoordinates = (uint32_t)ceil(log2(nbValues));
// nbReducedCoordinates = smallest power of 2 which is above nbValues
uint32_t nbReducedCoordinates = (uint32_t)ceil(log2(nbValues));
-
Real* reducedCoordinates = (Real*) malloc(nbSeries * nbReducedCoordinates * sizeof(Real
));
+
float* reducedCoordinates = (float*) malloc(nbSeries * nbReducedCoordinates * sizeof(float
));
// call preprocessing with the rows of raw power values matrix.
// Keep the IDs in memory for further processing.
// call preprocessing with the rows of raw power values matrix.
// Keep the IDs in memory for further processing.
@@
-49,7
+49,7
@@
static Result_t* do_work(Work_t* work)
// *** Step 2 ***
// Run PAM algorithm on the dissimilarity matrix computed from 'reducedCoordinates'.
// *** Step 2 ***
// Run PAM algorithm on the dissimilarity matrix computed from 'reducedCoordinates'.
-
Real
* dissimilarities = get_dissimilarities_intra(
+
float
* dissimilarities = get_dissimilarities_intra(
reducedCoordinates, nbSeries, nbReducedCoordinates, work->p_for_dissims);
free(reducedCoordinates);
reducedCoordinates, nbSeries, nbReducedCoordinates, work->p_for_dissims);
free(reducedCoordinates);