An accessor that represents the transpose of a row-major (NxM) matrix represented by a contiguous accessor.
More...
|
| constexpr | TransposedView (const Accessor &accessor) |
| | Constructor from a given accessor.
|
| constexpr | TransposedView (Accessor &&accessor) |
| | Constructor from a given accessor.
|
| constexpr | TransposedView (const TransposedView< T, N, M, Accessor > &other) |
| | Shallow copy constructor.
|
| constexpr | TransposedView (TransposedView< T, N, M, Accessor > &&other) |
| | Shallow move constructor.
|
| constexpr decltype(auto) | operator[] (size_t idx) |
| | Element access operator.
|
| constexpr decltype(auto) | operator[] (size_t idx) const |
template<typename T, size_t N, size_t M, ValidAccessor< T > Accessor>
class mundy::TransposedView< T, N, M, Accessor >
Concept: Sometimes we'd like to access the transpose of a row-major matrix represented by a contiguous accessor without copying the underlying data. This class provides a way to do that.
The resulting transpose has size MxN.
- Template Parameters
-
| T | The type of the elements |
| N | The number of rows in the matrix |
| M | The number of columns in the matrix |
| Accessor | The type of the contiguous accessor |