FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
mdcolex< T, D > Struct Template Reference

A variation of mdspan with reversed indices (distinguished by ()). More...

Public Member Functions

template<class... I>
constexpr decltype(auto) operator() (I... inds) const noexcept
 Select an element of the view.
 
- Public Member Functions inherited from mdbase< T, D >
constexpr size_type length (Dimension i) const noexcept
 Get one size of the view.
 
template<typename U = size_type, typename = std::enable_if_t<std::is_convertible_v<U, size_type>>>
constexpr mdbase (T *p, std::array< U, D > sz) noexcept
 Construct a view of a one-dimensional array.
 

Detailed Description

template<class T, Dimension D>
struct flecsi::util::mdcolex< T, D >

A variation of mdspan with reversed indices (distinguished by ()).

Member Function Documentation

◆ operator()()

template<class T , Dimension D>
template<class... I>
constexpr decltype(auto) operator() ( I...  inds) const
constexprnoexcept

Select an element of the view.

Parameters
indsindices (each smaller than length(0), length(1), …)
Returns
T&