openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Member Functions | List of all members
kdpart::sequential_partitioner< T, S > Class Template Reference

#include <kdpart.hpp>

Collaboration diagram for kdpart::sequential_partitioner< T, S >:

Public Member Functions

void operator() (const std::vector< S > &ctr, T npart, std::vector< T > &part_vec)
 

Detailed Description

template<class T, class S>
class kdpart::sequential_partitioner< T, S >

Definition at line 642 of file kdpart.hpp.

Member Function Documentation

◆ operator()()

template<class T , class S >
void kdpart::sequential_partitioner< T, S >::operator() ( const std::vector< S > &  ctr,
npart,
std::vector< T > &  part_vec 
)
inline

In the case that the number of processes (thus the number of requested partitions) is not a power of two, we partition with a higher partition number and then evenly distribute the partitions onto the processes. This reduces the difference between partition sizes.

Definition at line 827 of file kdpart.hpp.


The documentation for this class was generated from the following file: