DASH
0.3.0
|
DistributionSpec describes distribution patterns of all dimensions,. More...
#include <Dimensional.h>
Public Member Functions | |
DistributionSpec () | |
Default constructor, initializes default blocked distribution (BLOCKED, NONE*). More... | |
template<typename... Values> | |
DistributionSpec (Distribution value, Values... values) | |
Constructor, initializes distribution with given distribution types for every dimension. More... | |
DistributionSpec (const std::array< Distribution, NumDimensions > &values) | |
Constructor, initializes distribution with given distribution types for every dimension. More... | |
bool | is_tiled_in_dimension (unsigned int dimension) const |
Whether the distribution in the given dimension is tiled. More... | |
bool | is_tiled () const |
Whether the distribution is tiled in any dimension. More... | |
constexpr const std::array< Distribution, NumDimensions > & | values () const |
Return value with all dimensions as array of NumDimensions elements. More... | |
Distribution | dim (dim_t dimension) const |
The value in the given dimension. More... | |
constexpr Distribution | operator[] (size_t dimension) const |
Subscript operator, access to value in dimension given by index. More... | |
Distribution & | operator[] (size_t dimension) |
Subscript assignment operator, access to value in dimension given by index. More... | |
constexpr bool | operator== (const self_t &other) const |
Equality comparison operator. More... | |
constexpr bool | operator!= (const self_t &other) const |
Equality comparison operator. More... | |
constexpr dim_t | rank () const |
The number of dimensions of the value. More... | |
Static Public Member Functions | |
static constexpr dim_t | ndim () |
The number of dimensions of the value. More... | |
Friends | |
template<dim_t NumDimensions_> | |
std::ostream & | operator<< (std::ostream &os, const DistributionSpec< NumDimensions_ > &distspec) |
DistributionSpec describes distribution patterns of all dimensions,.
Definition at line 222 of file Dimensional.h.
|
inline |
Default constructor, initializes default blocked distribution (BLOCKED, NONE*).
Definition at line 238 of file Dimensional.h.
|
inline |
Constructor, initializes distribution with given distribution types for every dimension.
Example:
Definition at line 258 of file Dimensional.h.
|
inline |
Constructor, initializes distribution with given distribution types for every dimension.
Example:
Definition at line 280 of file Dimensional.h.
|
inlineinherited |
The value in the given dimension.
dimension | The dimension |
Definition at line 152 of file Dimensional.h.
|
inline |
Whether the distribution is tiled in any dimension.
Definition at line 304 of file Dimensional.h.
Referenced by dash::TeamSpec< NumDimensions, IndexType >::TeamSpec().
|
inline |
Whether the distribution in the given dimension is tiled.
Definition at line 295 of file Dimensional.h.
|
inlinestaticinherited |
The number of dimensions of the value.
Definition at line 207 of file Dimensional.h.
|
inlineinherited |
Equality comparison operator.
Definition at line 193 of file Dimensional.h.
|
inlineinherited |
Equality comparison operator.
Definition at line 186 of file Dimensional.h.
|
inlineinherited |
Subscript operator, access to value in dimension given by index.
Alias for dim
.
dimension | The dimension |
Definition at line 167 of file Dimensional.h.
|
inlineinherited |
Subscript assignment operator, access to value in dimension given by index.
Alias for dim
.
dimension | The dimension |
Definition at line 179 of file Dimensional.h.
|
inlineinherited |
The number of dimensions of the value.
Definition at line 200 of file Dimensional.h.
Referenced by dash::TeamSpec< NumDimensions, IndexType >::TeamSpec().
|
inlineinherited |
Return value with all dimensions as array of NumDimensions
elements.
Definition at line 142 of file Dimensional.h.