37 #ifndef PAR_PARTITION_H
38 #define PAR_PARTITION_H
90 void get_sizes(std::vector<size_t>& sizes);
109 #endif // PAR_PARTITION_H
Class to represent a partitioning of a data set.
par_partition(MPI_Comm comm=MPI_COMM_WORLD)
Construct a parallel partition for the communicator supplied Partition starts off with everyone in on...
MPI_Comm comm
Communicator, the processes of which this partition divides.
void get_sizes(std::vector< size_t > &sizes)
Scalably get the sizes of all the clusters in this partition.
std::ostream & operator<<(std::ostream &out, const id_pair< T > &p)
Print out an id_pair as a tuple of its element and its source rank.
par_partition represents a partitioning of a distributed data set.
std::vector< object_id > cluster_ids
Global cluster ids for local objects.
std::vector< object_id > medoid_ids
Gives the object id for the ith medoid. This object may not be local.
virtual ~par_partition()
Virtual destructor for inheritance.
void gather(partition &local, int root=0)
Collective operation.
This represents a partitioning of a data set.