tiled_range1.h
Definition: array_impl.h:203
bool operator==(const BlockRange &r1, const BlockRange &r2)
BlockRange equality comparison.
Definition: block_range.h:433
TiledRange1 & operator=(TiledRange1 &&rng)=default
Move assignment operator.
Definition: tile.h:35
const_iterator end() const
Returns an iterator to the end of the range.
Definition: tiled_range1.h:131
bool empty() const
Returns true if this range is empty (i.e. has no tiles)
Definition: tiled_range1.h:134
const_iterator find(const index1_type &e) const
Return tile iterator associated with ordinal_index.
Definition: tiled_range1.h:137
constexpr bool operator!=(const DenseShape &a, const DenseShape &b)
Definition: dense_shape.h:382
TiledRange1 & operator=(const TiledRange1 &rng)=default
Copy assignment operator.
void swap(TiledRange1 &r0, TiledRange1 &r1)
Exchange the data of the two given ranges.
Definition: tiled_range1.h:306
const index1_type & element_to_tile(const index1_type &i) const
Maps element index to tile index.
Definition: tiled_range1.h:194
Definition: tile.h:33
TiledRange1(const std::initializer_list< Integer > &list)
Construct a 1D tiled range.
Definition: tiled_range1.h:117
std::pair< index1_type, index1_type > range_type
Definition: tiled_range1.h:56
TiledRange1(RandIter first, RandIter last)
Definition: tiled_range1.h:76
void serialize(const Archive &ar) const
Definition: tiled_range1.h:228
std::vector< range_type >::const_iterator const_iterator
Definition: tiled_range1.h:57
friend std::ostream & operator<<(std::ostream &, const TiledRange1 &)
TiledRange1 ostream operator.
Definition: tiled_range1.h:323
bool is_congruent(const BlockRange &r1, const BlockRange &r2)
Test that two BlockRange objects are congruent.
Definition: block_range.h:400
std::ostream & operator<<(std::ostream &os, const DistArray< Tile, Policy > &a)
Add the tensor to an output stream.
Definition: dist_array.h:1602
Definition: array_impl.cpp:28
const range_type & tile(const index1_type i) const
Tile range accessor.
Definition: tiled_range1.h:176
const_iterator begin() const
Returns an iterator to the first tile in the range.
Definition: tiled_range1.h:128
const index1_type & element2tile(const index1_type &i) const
Definition: tiled_range1.h:203
TiledRange1 concat(const TiledRange1 &r1, const TiledRange1 &r2)
Concatenates two ranges.
Definition: tiled_range1.h:339
Definition: tiled_range1.h:50
TiledRange1(const index1_type &t0, const _sizes &... t_rest)
Construct a 1D tiled range.
Definition: tiled_range1.h:98