25 template <
typename ValueType,
typename Extents,
typename LayoutPolicy,
26 typename ContainerPolicy>
32 using mapping_type =
typename layout_policy::template mapping<Extents>;
35 typename container_policy::template container<value_type>;
38 const allocator_type& allocator = allocator_type());
41 const allocator_type& allocator = allocator_type());
44 const_view_type
view() const noexcept;
46 static constexpr std::ptrdiff_t
rank() noexcept;
48 reference operator()(std::array<std::ptrdiff_t,
rank()> i);
49 const_reference operator()(std::array<std::ptrdiff_t,
rank()> i) const;
51 template <typename... Is>
52 std::enable_if_t<sizeof...(Is) ==
rank() &&
53 (true && ... && std::is_integral_v<Is>),
57 template <typename... Is>
58 std::enable_if_t<sizeof...(Is) ==
rank() &&
59 (true && ... && std::is_integral_v<Is>),
61 operator()(Is... is) const;
68 std::
size_t size() const noexcept;
75 template <typename ValueType, typename... Is>
79 template <typename ValueType, std::ptrdiff_t Rank>
Definition: mdarray.hpp:27
typename container_policy::template container< value_type > conatiner_type
Definition: mdarray.hpp:35
std::ptrdiff_t extent(std::ptrdiff_t rank)
typename layout_policy::template mapping< Extents > mapping_type
Definition: mdarray.hpp:32
static constexpr std::ptrdiff_t rank() noexcept
LayoutPolicy layout_policy
Definition: mdarray.hpp:31
const container_type & container() const noexcept
basic_mdarray(const extents_type &extents, const allocator_type &allocator=allocator_type())
view_type view() noexcept
ContainerPolicy container_policy
Definition: mdarray.hpp:33
std::size_t size() const noexcept
mapping_type mapping_
Definition: mdarray.hpp:72
basic_mdarray(const value_type &default_value, const extents_type &extents, const allocator_type &allocator=allocator_type())
Extents extents_type
Definition: mdarray.hpp:30
container_type container_
Definition: mdarray.hpp:71
ValueType value_type
Definition: mdarray.hpp:29
An extents object defines a multidimensional index space which is the Cartesian product of integers e...
Definition: mdspan.hpp:208
The fub namespace.
Definition: AnyBoundaryCondition.hpp:31
typename dynamic_extents_< make_index_sequence< Rank > >::type dynamic_extents
Definition: mdspan.hpp:725
dynamic_extents< static_cast< std::size_t >Rank)> Extents(const BasicView< State, Layout, Rank > &view)
Definition: State.hpp:480
This layout creates mappings which do row first indexing (as in Fortran).
Definition: mdspan.hpp:296