|
| constexpr value_type & | operator() (size_type row, size_type col) const |
| | Returns the data element at position (row, col).
|
| constexpr range< row_major > | operator() (const span &rows, const span &cols) const |
| | Returns the sub-range spanning the range (rows, cols).
|
| constexpr size_type | length (size_type dimension) const |
| | Returns the length in dimension dimension.
|
| template<typename OtherAccessor> |
| void | copy_from (const OtherAccessor &other) const |
| | Copies data from another accessor.
|
template<typename ValueType,
size_type Dimensionality>
class gko::accessor::row_major< ValueType, Dimensionality >
A row_major accessor is a bridge between a range and the row-major memory layout.
You should never try to explicitly create an instance of this accessor. Instead, supply it as a template parameter to a range, and pass the constructor parameters for this class to the range (it will forward it to this class).
- Warning
- The current implementation is incomplete, and only allows for 2-dimensional ranges.
- Template Parameters
-
| ValueType | type of values this accessor returns |
| Dimensionality | number of dimensions of this accessor (has to be 2) |