NEURON
have2want.hpp File Reference
#include <numeric>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Classes

struct  Data< T >
 

Functions

template<typename T >
int rendezvous_rank (const T &key)
 
static std::vector< int > cnt2displ (const std::vector< int > &cnt)
 
static std::vector< int > srccnt2destcnt (std::vector< int > srccnt)
 
template<typename T , typename F >
static std::tuple< Data< T >, Data< T > > rendezvous_rank_get (const std::vector< T > &data, F alltoall_function)
 
template<typename T , typename F >
std::pair< Data< T >, Data< T > > have_to_want (const std::vector< T > &have, const std::vector< T > &want, F alltoall_function)
 

Function Documentation

◆ cnt2displ()

static std::vector<int> cnt2displ ( const std::vector< int > &  cnt)
static

Definition at line 44 of file have2want.hpp.

◆ have_to_want()

template<typename T , typename F >
std::pair<Data<T>, Data<T> > have_to_want ( const std::vector< T > &  have,
const std::vector< T > &  want,
alltoall_function 
)

Definition at line 89 of file have2want.hpp.

◆ rendezvous_rank()

template<typename T >
int rendezvous_rank ( const T &  key)

Definition at line 33 of file have2want.hpp.

◆ rendezvous_rank_get()

template<typename T , typename F >
static std::tuple<Data<T>, Data<T> > rendezvous_rank_get ( const std::vector< T > &  data,
alltoall_function 
)
static

Definition at line 57 of file have2want.hpp.

◆ srccnt2destcnt()

static std::vector<int> srccnt2destcnt ( std::vector< int >  srccnt)
static

Definition at line 50 of file have2want.hpp.