Template Class DataView¶
Defined in File DataView.hpp
Class Documentation¶
-
template<typename T, size_t R>
class DataView¶ A multi-dimensional view for MemRef-like and std::vector<T> types.
Note
A forward iterator is implemented in this view for traversing over the entire elements of MemRef types rank-by-rank starting from the last dimension (R-1). For example, The DataView iterator for MemRef<T, 2> starts from index (0, 0) and traverses elements in the following order: (0, 0), …, (0, sizes[1]-1), (1, 0), …, (1, sizes[1]-1), … (sizes[0]-1, sizes[1]-1).
- Template Parameters
T – The underlying data type
R – The Rank (R > 0)
Public Functions
-
inline auto size() const -> size_t¶
api/classDataView
Download Python script
Download Notebook
View on GitHub