59 template <
typename entry_t>
64 using entry_type = entry_t;
71 row_wise_matrix() =
default;
72 row_wise_matrix(row_wise_matrix
const &) =
default;
73 row_wise_matrix(row_wise_matrix &&) =
default;
74 row_wise_matrix & operator=(row_wise_matrix
const &) =
default;
75 row_wise_matrix & operator=(row_wise_matrix &&) =
default;
82 row_wise_matrix(std::vector<entry_type> entries,
size_t const rows,
size_t const cols)
83 : _entries{std::move(entries)}, _rows{rows}, _cols{cols}
88 size_t rows() const noexcept
94 size_t cols() const noexcept
100 entry_type at(
size_t const row,
size_t const col)
const noexcept
102 assert(row < rows() && col < cols());
103 return _entries[row * cols() + col];
109 std::vector<entry_type> _entries;
Definition: aligned_sequence_concept.hpp:288