6 // types of work given to a slave
10 // 256 characters for file name should be enough
11 #define NCHAR_FNAME 256
13 typedef unsigned char Byte
;
17 // Type to describe a job to be done in a node
18 //TODO: merge with packed version to avoid extra copy by MPI
19 typedef struct Work_t
{
20 // "structural" parameters:
24 // clustering parameters [to be completed]:
26 uint32_t clustOnMedoids
; //a boolean, but 1 byte storage would be inefficient
27 uint32_t p_for_dissims
;
30 // Type returned by a worker (clusters labels and medoids)
31 //TODO: merge with packed version to avoid extra copy by MPI
32 typedef struct Result_t
{
33 // parameters describing sizes
35 // informative parameters:
37 uint32_t* medoids_ranks
;
40 // data structure to store a customer ID + [time-]serie
41 typedef struct PowerCurve
{