Template Struct ElementAccess< Layout::rowmajor >

Struct Documentation

template<>
struct ElementAccess<Layout::rowmajor>

Public Types

using NextColStride = Eigen::Stride<0, 0>
using NextRowStride = Eigen::InnerStride<Eigen::Dynamic>

Public Static Functions

template<typename T>
static inline constexpr VEG_INLINE auto offset(T *ptr, isize row, isize col, isize outer_stride) noexcept -> T*
static inline VEG_INLINE auto next_col_stride(isize outer_stride) noexcept -> NextColStride
static inline VEG_INLINE auto next_row_stride(isize outer_stride) noexcept -> NextRowStride
template<typename T> static inline VEG_INLINE void transpose_if_rowmajor (T *ptr, isize dim, isize outer_stride)