STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Member Functions | Protected Attributes
stapl::skeletons::spans::blocked< i > Class Template Reference

A blocked span which is used the most across the skeletons library. It assigns a blocked spawn load to each location. The load on each location is roughly $\frac{n}{p}$. More...

Public Member Functions

template<typename Spawner , typename... Views>
void set_size (Spawner const &spawner, Views const &... views)
 
std::vector< domain_type > const & local_domain ()
 
template<typename Coord >
bool should_spawn (Coord const &skeleton_size, Coord const &coord) const
 
size_type dimensions () const
 
size_type total_dimension (void) const
 
size_type task_dimension (void) const
 
std::vector< size_type > level_dimensions (void) const
 
std::size_t size () const
 
std::size_t linearize (index_type const &coord) const
 
linearization_type get_linear_mf (void) const
 

Public Types

using dims_num = std::integral_constant< int, i >
 
using nested_dims_num = dims_num
 
using traversal_type = typename default_traversal< i >::type
 
using partition_type = multiarray_impl::block_partition< typename default_traversal< i >::type >
 
using domain_type = typename partition_type::domain_type
 
using index_type = typename domain_type::index_type
 
using size_type = typename domain_type::size_type
 
using dimension_type = std::integral_constant< int, i >
 
using linearization_type = nd_linearize< index_type, traversal_type >
 

Protected Member Functions

template<typename Spawner , typename View >
void set_size_impl (Spawner const &spawner, View const &view)
 

Protected Attributes

std::vector< domain_type > m_local_domain
 
domain_type m_global_domain
 
linearization_type m_linear_mf
 

Detailed Description

template<int i>
class stapl::skeletons::spans::blocked< i >

A blocked span which is used the most across the skeletons library. It assigns a blocked spawn load to each location. The load on each location is roughly $\frac{n}{p}$.

Member Typedef Documentation

◆ nested_dims_num

template<int i>
using stapl::skeletons::spans::blocked< i >::nested_dims_num = dims_num

Member Function Documentation

◆ local_domain()

template<int i>
std::vector<domain_type> const& stapl::skeletons::spans::blocked< i >::local_domain ( )

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