A multi-dimensional view of an array. More...
Public Member Functions | |
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 multi-dimensional view of an array.
This class is supported for GPU execution.
|
constexprnoexcept |
Construct a view of a one-dimensional array.
Here, x
and y
are analogous:
p | pointer to first element of (sub)array |
sz | sizes, least significant first |