STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::multiarray_impl::block_partition< Traversal > Class Template Reference

n-dimensional partition consisting of balanced_partitions of indexed_domain. This class will partition a multidimensional domain into multidimensional blocks with a certain number of blocks in each dimension. This is the default partition for the multiarray container. More...

Public Member Functions

template<typename Dom >
 block_partition (const Dom &dom)
 Create a multidimensional partition based on a given n-dimensional domain that is balanced based on the number of locations in each dimension. More...
 
template<typename Dom , typename NParts >
 block_partition (Dom const &dom, NParts const &nparts)
 Create a multidimensional partition based on a given n-dimensional domain and a tuple of the number of partitions in each dimension. More...
 

Public Types

using partitions_type = typename base_type::partitions_type
 

Detailed Description

template<typename Traversal>
class stapl::multiarray_impl::block_partition< Traversal >

n-dimensional partition consisting of balanced_partitions of indexed_domain. This class will partition a multidimensional domain into multidimensional blocks with a certain number of blocks in each dimension. This is the default partition for the multiarray container.

Template Parameters
TraversalMultidimensional traversal type
See also
multiarray

Constructor & Destructor Documentation

◆ block_partition() [1/2]

template<typename Traversal >
template<typename Dom >
stapl::multiarray_impl::block_partition< Traversal >::block_partition ( const Dom &  dom)
explicit

Create a multidimensional partition based on a given n-dimensional domain that is balanced based on the number of locations in each dimension.

Parameters
domThe original domain to partition.

◆ block_partition() [2/2]

template<typename Traversal >
template<typename Dom , typename NParts >
stapl::multiarray_impl::block_partition< Traversal >::block_partition ( Dom const &  dom,
NParts const &  nparts 
)

Create a multidimensional partition based on a given n-dimensional domain and a tuple of the number of partitions in each dimension.

Parameters
domThe original domain to partition.
npartsTuple of the number of partitions in each dimension

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