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