Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::parallel::uneven_block Struct Reference

#include <distribution.hpp>

Public Types

typedef std::vector< std::size_t > size_vector
 

Public Member Functions

template<typename LinearProcessGroup >
 uneven_block (const LinearProcessGroup &pg, const std::vector< std::size_t > &local_sizes)
 
template<typename SizeType >
SizeType block_size (SizeType) const
 
template<typename SizeType , typename ProcessID >
SizeType block_size (ProcessID id, SizeType) const
 
template<typename SizeType >
SizeType operator() (SizeType i) const
 
template<typename ID >
std::size_t start (ID id) const
 
template<typename SizeType >
SizeType local (SizeType i) const
 
template<typename SizeType >
SizeType global (SizeType i) const
 
template<typename ProcessID , typename SizeType >
SizeType global (ProcessID id, SizeType i) const
 

Member Typedef Documentation

typedef std::vector<std::size_t> boost::parallel::uneven_block::size_vector

Constructor & Destructor Documentation

template<typename LinearProcessGroup >
boost::parallel::uneven_block::uneven_block ( const LinearProcessGroup &  pg,
const std::vector< std::size_t > &  local_sizes 
)
inlineexplicit

Member Function Documentation

template<typename SizeType >
SizeType boost::parallel::uneven_block::block_size ( SizeType  ) const
inline
template<typename SizeType , typename ProcessID >
SizeType boost::parallel::uneven_block::block_size ( ProcessID  id,
SizeType   
) const
inline
template<typename SizeType >
SizeType boost::parallel::uneven_block::global ( SizeType  i) const
inline
template<typename ProcessID , typename SizeType >
SizeType boost::parallel::uneven_block::global ( ProcessID  id,
SizeType  i 
) const
inline

References start().

template<typename SizeType >
SizeType boost::parallel::uneven_block::local ( SizeType  i) const
inline
template<typename SizeType >
SizeType boost::parallel::uneven_block::operator() ( SizeType  i) const
inline
template<typename ID >
std::size_t boost::parallel::uneven_block::start ( ID  id) const
inline

Referenced by global(), and local().


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