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

Row vector wrapper template class. More...

Inheritance diagram for row_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

 row_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

 row_wrapper (const row_wrapper &)
 Inaccessible copy constructor.
row_wrapperoperator= (const row_wrapper &)
 Inaccessible copy assignment operator.

Detailed Description

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

Row 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 1899 of file matrix.h.

Member Function Documentation

size_t cols ( ) const
inline

Returns number of columns.

That is the size of wrapped vector.

Definition at line 1924 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 1914 of file matrix.h.

size_t rows ( ) const
inline

Returns number of rows.

Always returns 1.

Definition at line 1921 of file matrix.h.


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