NABLA  Nabla Ain't Basic Linear Algebra
Public Types | Public Member Functions | Private Member Functions | Friends | List of all members
vector_ref< expression_type, tag::reference, orientation::column > Class Template Reference

Column reference template class partial specialization. More...

Inheritance diagram for vector_ref< expression_type, tag::reference, orientation::column >:
Inheritance graph

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_refoperator= (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.

Detailed Description

template<typename expression_type>
class nabla::vector_ref< expression_type, tag::reference, orientation::column >

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.

See Also
vector_expression, column()

Definition at line 4323 of file matrix.h.


The documentation for this class was generated from the following file: