5#include <vitrio/export.hpp>
6#include <vitrio/span.hpp>
46 std::vector<std::size_t>
extents,
118 std::
vector<std::
size_t> m_extents;
119 std::
size_t m_file_rank;
120 std::
size_t m_array_rank;
The shape every region of a transfer shares: the extents of one region and the ranks of the file and ...
Definition image_transfer_shape.hpp:32
image_transfer_shape(std::vector< std::size_t > extents, std::size_t file_rank, std::size_t array_rank)
Construct a shape from its components.
std::size_t get_file_rank() const noexcept
Get the rank of the file side.
std::size_t get_rank() const noexcept
Get the rank of one region.
std::size_t get_array_rank() const noexcept
Get the rank of the array side.
span< const std::size_t > get_extents() const noexcept
Get the extents of one region.
std::size_t get_leading_rank(std::size_t rank) const noexcept
Get how many leading axes of a side a region spans a single position along.
std::size_t get_extent(std::size_t rank, std::size_t axis) const noexcept
Get the extent a region spans along one axis of a side.
A view of a contiguous sequence of elements.
Definition span.hpp:29