A small, approximate subset of mdspan as proposed for C++23. More...
Public Member Functions | |
template<class T , class U , std::size_t D> | |
mdspan (T *, std::array< U, D >) -> mdspan< T, D > | |
Deduction guide. | |
constexpr decltype(auto) | operator[] (size_type i) const noexcept |
Select a subset 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. | |
A small, approximate subset of mdspan as proposed for C++23.
This class is supported for GPU execution.
D | dimension |
Deduction guide.
|
constexprnoexcept |
Select a subset of the view.
i | index (must be smaller than length(D-1) ) |
mdspan<T,D-1>
or T&
if D
is 1