TiledArray
0.7.0
|
Range data of a tiled array. More...
#include <tiled_range.h>
Public Types | |
typedef TiledRange | TiledRange_ |
typedef Range | range_type |
typedef std::size_t | size_type |
typedef range_type::index | index |
typedef range_type::size_array | size_array |
typedef std::vector< TiledRange1 > | Ranges |
Public Member Functions | |
TiledRange () | |
Default constructor. More... | |
template<typename InIter > | |
TiledRange (InIter first, InIter last) | |
Constructed with a set of ranges pointed to by [ first, last ). More... | |
TiledRange (const std::initializer_list< std::initializer_list< size_type > > &list) | |
Constructed with a set of ranges pointed to by [ first, last ). More... | |
TiledRange (const std::initializer_list< TiledRange1 > &list) | |
Constructed with an initializer_list of TiledRange1's. More... | |
TiledRange (const TiledRange_ &other) | |
Copy constructor. More... | |
TiledRange_ & | operator= (const TiledRange_ &other) |
TiledRange assignment operator. More... | |
TiledRange_ & | operator*= (const Permutation &p) |
In place permutation of this range. More... | |
const range_type & | tiles_range () const |
Access the tile range. More... | |
DEPRECATED const range_type & | tiles () const |
Access the tile range. More... | |
const range_type & | elements_range () const |
Access the element range. More... | |
DEPRECATED const range_type & | elements () const |
Access the element range. More... | |
range_type | tile (const size_type &i) const |
Constructs a range for the tile indexed by the given ordinal index. More... | |
range_type | make_tile_range (const size_type &i) const |
Construct a range for the tile indexed by the given ordinal index. More... | |
template<typename Index > | |
std::enable_if<!std::is_integral< Index >::value, range_type >::type | tile (const Index &index) const |
Construct a range for the tile indexed by the given index. More... | |
template<typename Index > | |
std::enable_if<! std::is_integral< Index >::value, range_type >::type | make_tile_range (const Index &index) const |
Construct a range for the tile indexed by the given index. More... | |
template<typename Integer > | |
range_type | tile (const std::initializer_list< Integer > &index) const |
Construct a range for the tile indexed by the given index. More... | |
template<typename Integer > | |
range_type | make_tile_range (const std::initializer_list< Integer > &index) const |
Construct a range for the tile indexed by the given index. More... | |
template<typename Index > | |
std::enable_if<! std::is_integral< Index >::value, typename range_type::index >::type | element_to_tile (const Index &index) const |
Convert an element index to a tile index. More... | |
std::size_t | rank () const |
The rank accessor. More... | |
const TiledRange1 & | dim (std::size_t d) const |
Accessor of the tiled range for one of the dimensions. More... | |
const Ranges & | data () const |
Tile dimension boundary array accessor. More... | |
void | swap (TiledRange_ &other) |
Range data of a tiled array.
TiledRange is a direct (Cartesian) product of 1-dimensional tiled ranges (TiledRange1)
Definition at line 31 of file tiled_range.h.
Definition at line 66 of file tiled_range.h.
Definition at line 64 of file tiled_range.h.
typedef std::vector<TiledRange1> TiledArray::TiledRange::Ranges |
Definition at line 68 of file tiled_range.h.
Definition at line 67 of file tiled_range.h.
typedef std::size_t TiledArray::TiledRange::size_type |
Definition at line 65 of file tiled_range.h.
Definition at line 63 of file tiled_range.h.
|
inline |
Default constructor.
Definition at line 71 of file tiled_range.h.
|
inline |
Constructed with a set of ranges pointed to by [ first, last ).
Definition at line 75 of file tiled_range.h.
|
inline |
Constructed with a set of ranges pointed to by [ first, last ).
Definition at line 82 of file tiled_range.h.
|
inline |
Constructed with an initializer_list of TiledRange1's.
Definition at line 89 of file tiled_range.h.
|
inline |
Copy constructor.
Definition at line 96 of file tiled_range.h.
|
inline |
Tile dimension boundary array accessor.
nothing |
Definition at line 268 of file tiled_range.h.
|
inline |
Accessor of the tiled range for one of the dimensions.
d | the dimension index, a nonnegative integer less than rank() |
d
Definition at line 259 of file tiled_range.h.
|
inline |
Convert an element index to a tile index.
Index | the index type |
index | The element index to convert |
Definition at line 240 of file tiled_range.h.
|
inline |
Access the element range.
Definition at line 145 of file tiled_range.h.
|
inline |
Access the element range.
Definition at line 137 of file tiled_range.h.
|
inline |
Construct a range for the tile indexed by the given ordinal index.
i | The ordinal index of the tile range to be constructed |
std::runtime_error | Throws if i is not included in the range |
Definition at line 165 of file tiled_range.h.
|
inline |
Construct a range for the tile indexed by the given index.
index | The index of the tile range to be constructed |
std::runtime_error | Throws if i is not included in the range |
Definition at line 191 of file tiled_range.h.
|
inline |
Construct a range for the tile indexed by the given index.
index | The tile index, given as a std::initializer_list |
std::runtime_error | Throws if i is not included in the range |
Definition at line 229 of file tiled_range.h.
|
inline |
In place permutation of this range.
Definition at line 112 of file tiled_range.h.
|
inline |
TiledRange assignment operator.
Definition at line 103 of file tiled_range.h.
|
inline |
The rank accessor.
Definition at line 253 of file tiled_range.h.
|
inline |
Definition at line 271 of file tiled_range.h.
|
inline |
Constructs a range for the tile indexed by the given ordinal index.
i | The ordinal index of the tile range to be constructed |
std::runtime_error | Throws if i is not included in the range |
Definition at line 156 of file tiled_range.h.
|
inline |
Construct a range for the tile indexed by the given index.
index | The index of the tile range to be constructed |
std::runtime_error | Throws if i is not included in the range |
Definition at line 180 of file tiled_range.h.
|
inline |
Construct a range for the tile indexed by the given index.
index | The tile index, given as a std::initializer_list |
std::runtime_error | Throws if i is not included in the range |
Definition at line 218 of file tiled_range.h.
|
inline |
Access the tile range.
Definition at line 130 of file tiled_range.h.
|
inline |
Access the tile range.
Definition at line 122 of file tiled_range.h.