#include <genesis/utils/containers/matrix/row.hpp>
View into a Matrix row.
Public Member Functions | |
| MatrixRow (matrix_type &mat, size_t row) | |
| MatrixRow (MatrixRow &&)=default | |
| MatrixRow (MatrixRow const &)=default | |
| ~MatrixRow ()=default | |
| self_type & | assign (self_type const &other) |
| Overwrite a row by the elements of another row. More... | |
| value_type & | at (size_t column) const |
Return the element at a given column of the Matrix row. More... | |
| Iterator | begin () const |
| Return an iterator to the beginning of the row. More... | |
| Iterator | end () const |
| Return an iterator to past-the-end of the row. More... | |
| matrix_type & | matrix () const |
| Get the underlying Matrix. More... | |
| operator std::vector< non_const_value_type > () const | |
Get a copy of the row in form of a std::vector. More... | |
| bool | operator!= (self_type const &other) const |
Return whether the elements of two rows are identical, using == for comparing elements. More... | |
| MatrixRow & | operator= (MatrixRow &&)=default |
| MatrixRow & | operator= (MatrixRow const &)=default |
| self_type & | operator= (std::vector< T > const &vec) |
Overwrite a row by the elements of a std::vector. More... | |
| bool | operator== (self_type const &other) const |
Return whether the elements of two rows are identical, using == for comparing elements. More... | |
| value_type & | operator[] (size_t column) const |
Return the element at a given column of the Matrix row. More... | |
| size_t | row () const |
| Get the row index that this object represents. More... | |
| size_t | size () const |
| Get the size of the row, that is, the number of columns of the Matrix. More... | |
| std::vector< non_const_value_type > | to_vector () const |
| Explicit conversion to vector. More... | |
Public Types | |
| using | matrix_type = MT |
| using | non_const_value_type = typename std::remove_const< T >::type |
| using | self_type = MatrixRow< MT, T > |
| using | value_type = T |
Classes | |
| class | Iterator |
| Random access iterator into a Matrix row. More... | |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| using matrix_type = MT |
| using non_const_value_type = typename std::remove_const<T>::type |
| using value_type = T |