DASH
0.3.0
|
Specifies cartesian extents in a specific number of dimensions. More...
#include <Cartesian.h>
Public Types | |
typedef IndexType | index_type |
typedef SizeType | size_type |
typedef std::array< SizeType, NumDimensions > | extents_type |
typedef std::integral_constant< dim_t, NumDimensions > | ndim |
The number of dimension in the cartesian space. More... | |
Public Member Functions | |
constexpr | SizeSpec () |
Default constructor, creates a space of extent 0 in all dimensions. More... | |
template<typename... Args> | |
constexpr | SizeSpec (SizeType arg, Args... args) |
Constructor, creates a cartesian space of given extents. More... | |
constexpr | SizeSpec (const ::std::array< SizeType, NumDimensions > &extents) |
Constructor, creates a cartesian index space of given extents in all dimensions. More... | |
bool | operator== (const self_t &other) const |
Equality comparison operator. More... | |
constexpr bool | operator!= (const self_t &other) const |
Inequality comparison operator. More... | |
template<typename... Args> | |
void | resize (SizeType arg, Args... args) |
Change the extent of the cartesian space in every dimension. More... | |
template<typename SizeType_ > | |
void | resize (const std::array< SizeType_, NumDimensions > &extents) |
Change the extent of the cartesian space in every dimension. More... | |
void | resize (dim_t dim, SizeType extent) |
Change the extent of the cartesian space in the given dimension. More... | |
constexpr dim_t | rank () const noexcept |
The number of dimension in the cartesian space with extent greater than 1. More... | |
constexpr SizeType | size () const noexcept |
The number of discrete elements within the space spanned by the coordinate. More... | |
constexpr const extents_type & | extents () const noexcept |
Extents of the cartesian space, by dimension. More... | |
SizeType | extent (dim_t dim) const |
The extent of the cartesian space in the given dimension. More... | |
Specifies cartesian extents in a specific number of dimensions.
(DashCartesianSpaceConcept)
Definition at line 197 of file Cartesian.h.
|
inherited |
The number of dimension in the cartesian space.
Definition at line 57 of file Cartesian.h.
|
inline |
Default constructor, creates a space of extent 0 in all dimensions.
Definition at line 207 of file Cartesian.h.
|
inline |
Constructor, creates a cartesian space of given extents.
Definition at line 214 of file Cartesian.h.
|
inline |
Constructor, creates a cartesian index space of given extents in all dimensions.
Definition at line 222 of file Cartesian.h.
|
inlineinherited |
The extent of the cartesian space in the given dimension.
dim | The dimension in the coordinate |
Definition at line 181 of file Cartesian.h.
Referenced by dash::ShiftTilePattern< NumDimensions, Arrangement, IndexType >::ndim(), dash::SeqTilePattern< NumDimensions, Arrangement, IndexType >::ndim(), dash::CartesianSpace< NumDimensions, SizeType >::resize(), dash::CartesianIndexSpace< NumDimensions, ROW_MAJOR, dash::default_index_t >::resize(), dash::BlockPattern< 1, ROW_MAJOR, dash::default_index_t >::underfilled_blocksize(), and dash::TilePattern< NumDimensions, Arrangement, IndexType >::underfilled_blocksize().
|
inlinenoexceptinherited |
Extents of the cartesian space, by dimension.
Definition at line 171 of file Cartesian.h.
Referenced by dash::LocalMemoryLayout< NumDimensions, Arrangement, IndexType >::coords(), dash::ShiftTilePattern< NumDimensions, Arrangement, IndexType >::ndim(), dash::SeqTilePattern< NumDimensions, Arrangement, IndexType >::ndim(), dash::CartesianSpace< NumDimensions, SizeType >::resize(), dash::CartesianIndexSpace< NumDimensions, ROW_MAJOR, dash::default_index_t >::resize(), dash::LocalMemoryLayout< NumDimensions, Arrangement, IndexType >::resize(), and dash::TilePattern< NumDimensions, Arrangement, IndexType >::underfilled_blocksize().
|
inlineinherited |
Inequality comparison operator.
Definition at line 108 of file Cartesian.h.
|
inlineinherited |
Equality comparison operator.
Definition at line 92 of file Cartesian.h.
|
inlinenoexceptinherited |
The number of dimension in the cartesian space with extent greater than 1.
Definition at line 154 of file Cartesian.h.
|
inlineinherited |
Change the extent of the cartesian space in every dimension.
Definition at line 116 of file Cartesian.h.
References dash::CartesianSpace< NumDimensions, SizeType >::extents().
Referenced by dash::CartesianIndexSpace< NumDimensions, ROW_MAJOR, dash::default_index_t >::CartesianIndexSpace(), dash::CartesianSpace< NumDimensions, SizeType >::CartesianSpace(), dash::CartesianSpace< NumDimensions, SizeType >::resize(), dash::CartesianIndexSpace< NumDimensions, ROW_MAJOR, dash::default_index_t >::resize(), and dash::LocalMemoryLayout< NumDimensions, Arrangement, IndexType >::resize().
|
inlineinherited |
Change the extent of the cartesian space in every dimension.
Definition at line 129 of file Cartesian.h.
|
inlineinherited |
Change the extent of the cartesian space in the given dimension.
Definition at line 141 of file Cartesian.h.
References dash::CartesianSpace< NumDimensions, SizeType >::extent(), and dash::CartesianSpace< NumDimensions, SizeType >::resize().
|
inlinenoexceptinherited |
The number of discrete elements within the space spanned by the coordinate.
Definition at line 164 of file Cartesian.h.
Referenced by dash::CartesianIndexSpace< NumDimensions, ROW_MAJOR, dash::default_index_t >::coords(), and dash::TilePattern< NumDimensions, Arrangement, IndexType >::underfilled_blocksize().