|
| constexpr | mapping () noexcept=default |
| | The default construction is possible for default constructible extents. More...
|
| |
| constexpr | mapping (const mapping &) noexcept=default |
| | Copy constructor for the mapping. More...
|
| |
| constexpr | mapping (const extents_type &e) noexcept |
| | Construct the mapping with from given extents. More...
|
| |
| template<class OtherExtents , std::enable_if_t< std::is_constructible_v< extents_type, OtherExtents >, int > = 0> |
| constexpr | mapping (const mapping< OtherExtents > &m) noexcept |
| | Construct the mapping from another mapping with a different extents type. More...
|
| |
| template<class OtherExtents , class E = extents_type> |
| constexpr | mapping (const layout_right::mapping< OtherExtents > &m) noexcept |
| | Construct the mapping from a layout_right. More...
|
| |
| template<class OtherExtents , std::enable_if_t< std::is_constructible_v< extents_type, OtherExtents >, int > = 0> |
| constexpr | mapping (const layout_stride::mapping< OtherExtents > &m) |
| | Construct the mapping from a layout_stride. More...
|
| |
| constexpr mapping & | operator= (const mapping &) noexcept=default |
| | Copy-assignment for the mapping. More...
|
| |
| constexpr const extents_type & | extents () const noexcept |
| |
| constexpr index_type | required_span_size () const noexcept |
| |
| template<class... Indices, std::enable_if_t<(sizeof...(Indices)==extents_type::rank()), int > = 0, std::enable_if_t<(... &&std::is_convertible_v< Indices, index_type >), int > = 0, std::enable_if_t<(... &&std::is_nothrow_constructible_v< Indices, index_type >), int > = 0> |
| constexpr index_type | operator() (Indices... ii) const noexcept |
| | Compute the offset i0 + E(0)*(i1 + E(1)*(i2 + E(2)*i3)) More...
|
| |
| constexpr index_type | operator() () const noexcept |
| | The default offset for rank-0 tensors is 0. More...
|
| |
| template<class E = extents_type, std::enable_if_t<(E::rank() > 0> |
| constexpr index_type | stride (rank_type i) const noexcept |
| | The stride is the product of the extents E(0)*E(1)*...*E(i-1) More...
|
| |
template<class Extents>
class Dune::Std::layout_left::mapping< Extents >
A layout mapping where the leftmost extent has stride 1.
template<class Extents>
template<class... Indices, std::enable_if_t<(sizeof...(Indices)==extents_type::rank()), int > = 0, std::enable_if_t<(... &&std::is_convertible_v< Indices, index_type >), int > = 0, std::enable_if_t<(... &&std::is_nothrow_constructible_v< Indices, index_type >), int > = 0>
Compute the offset i0 + E(0)*(i1 + E(1)*(i2 + E(2)*i3))