NABLA
Nabla Ain't Basic Linear Algebra
|
Constant row reference template class partial specialization. More...
Public Types | |
typedef expr_t::const_reference | const_reference |
Type of reference to constant element. | |
typedef expr_t::value_type | value_type |
Type of elements. |
Public Member Functions | |
vector_ref (const vector_ref &a) | |
Copy constructor. | |
vector_ref (const expr_t &a, size_t row) | |
Initializing constructor. | |
const_reference | operator() (size_t i) const |
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 | |
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. | |
size_t | get_vector_row (const vector_ref &a) |
Returns index of the row. |
Constant row reference template class partial specialization.
This class is used to refer to matrix rows as ordinary one dimensional vectors.
vector_ref
refers to expressions and is tagged like this:
where expression_complexity
is the complexity value of the referred expression (see Complexity Concept).