NABLA
Nabla Ain't Basic Linear Algebra
|
Column reference template class partial specialization. More...
Public Types | |
typedef expr_t::const_reference | const_reference |
Type of reference to constant element. | |
typedef expr_t::reference | reference |
Type of reference to element. | |
typedef expr_t::value_type | value_type |
Type of elements. |
Public Member Functions | |
vector_ref (vector_ref &a) | |
Copy constructor. | |
vector_ref (rvalue< vector_ref > &a) | |
Copy constructor from "rvalue". | |
vector_ref (expr_t &a, size_t column) | |
Initializing constructor. | |
reference | operator() (size_t i) |
Subscript operator. | |
const_reference | operator() (size_t i) const |
Subscript operator. | |
reference | operator[] (size_t i) |
Subscript operator. | |
const_reference | operator[] (size_t i) const |
Subscript operator. | |
size_t | size () const |
Returns size of vector. |
Private Member Functions | |
vector_ref & | operator= (const vector_ref &) |
Inaccessible copy assignment operator. |
Friends | |
size_t | get_vector_column (const vector_ref &a) |
Returns index of the row. | |
expr_t & | get_vector_ref (vector_ref &a) |
Returns reference to the argument. | |
const expr_t & | get_vector_ref (const vector_ref &a) |
Returns reference to the argument. |
Column reference template class partial specialization.
This class is used to refer to matrix columns as ordinary one dimensional vectors.
vector_ref
refers to a storage or a reference type and is tagged as reference and complies with its concept (see Reference Concept Description.