NABLA  Nabla Ain't Basic Linear Algebra
Public Types | Public Member Functions | Private Member Functions | List of all members
column_wrapper< value_t, expr_t, tag_t > Class Template Reference

Column vector wrapper template class. More...

Inheritance diagram for column_wrapper< value_t, expr_t, tag_t >:
Inheritance graph

Public Types

typedef const value_type const_reference
 Type of reference to constant element.
typedef value_t value_type
 Type of elements.

Public Member Functions

 column_wrapper ()
 Default constructor.
size_t cols () const
 Returns number of columns.
const_reference operator() (size_t row, size_t col) const
 Subscript operator.
size_t rows () const
 Returns number of rows.

Private Member Functions

 column_wrapper (const column_wrapper &)
 Inaccessible copy constructor.
column_wrapperoperator= (const column_wrapper &)
 Inaccessible copy assignment operator.

Detailed Description

template<typename value_t, typename expr_t, typename tag_t>
class nabla::column_wrapper< value_t, expr_t, tag_t >

Column vector wrapper template class.

This class wraps a vector expression so that it can be implicitly treated as a matrix. Although this class is exposed to the user, it is an implementation detail.

See Also
vector_expression

Definition at line 1837 of file matrix.h.

Member Function Documentation

size_t cols ( ) const
inline

Returns number of columns.

Always returns 1.

Definition at line 1862 of file matrix.h.

const_reference operator() ( size_t  row,
size_t  col 
) const
inline

Subscript operator.

col must always be equal to 0.

Definition at line 1852 of file matrix.h.

size_t rows ( ) const
inline

Returns number of rows.

That is the size of wrapped vector.

Definition at line 1859 of file matrix.h.


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