cheshirekow  v0.1.0
fiber::_RView< Scalar, Exp, rows_, cols_ > Class Template Reference

expression template for subset of a matrix expression More...

#include <fiber/view.h>

Inheritance diagram for fiber::_RView< Scalar, Exp, rows_, cols_ >:
fiber::_RValue< Scalar, _RView< Scalar, Exp, rows_, cols_ > >

Public Types

enum  { ROWS_ = rows_, COLS_ = cols_, SIZE_ = rows_ * cols_ }
 

Public Member Functions

 _RView (Exp const &A, int i, int j)
 
Size cols () const
 
Scalar operator() (Index i, Index j) const
 
Scalar operator[] (Index k) const
 
Size rows () const
 
Size size () const
 
- Public Member Functions inherited from fiber::_RValue< Scalar, _RView< Scalar, Exp, rows_, cols_ > >
Size cols () const
 
Scalar operator() (Size i, Size j) const
 
Scalar operator[] (Size i) const
 
Size rows () const
 
Size size () const
 

Protected Attributes

Exp const & A_
 underlying matrix expression More...
 
Index i_
 
Index j_
 

Detailed Description

template<typename Scalar, class Exp, Size rows_, Size cols_>
class fiber::_RView< Scalar, Exp, rows_, cols_ >

expression template for subset of a matrix expression

Definition at line 33 of file view.h.

Member Enumeration Documentation

template<typename Scalar , class Exp , Size rows_, Size cols_>
anonymous enum
Enumerator
ROWS_ 
COLS_ 
SIZE_ 

Definition at line 40 of file view.h.

Constructor & Destructor Documentation

template<typename Scalar , class Exp , Size rows_, Size cols_>
fiber::_RView< Scalar, Exp, rows_, cols_ >::_RView ( Exp const &  A,
int  i,
int  j 
)
inline

Definition at line 46 of file view.h.

Member Function Documentation

template<typename Scalar , class Exp , Size rows_, Size cols_>
Size fiber::_RView< Scalar, Exp, rows_, cols_ >::cols ( ) const
inline

Definition at line 54 of file view.h.

template<typename Scalar , class Exp , Size rows_, Size cols_>
Scalar fiber::_RView< Scalar, Exp, rows_, cols_ >::operator() ( Index  i,
Index  j 
) const
inline

Definition at line 63 of file view.h.

template<typename Scalar , class Exp , Size rows_, Size cols_>
Scalar fiber::_RView< Scalar, Exp, rows_, cols_ >::operator[] ( Index  k) const
inline

Definition at line 56 of file view.h.

template<typename Scalar , class Exp , Size rows_, Size cols_>
Size fiber::_RView< Scalar, Exp, rows_, cols_ >::rows ( ) const
inline

Definition at line 53 of file view.h.

template<typename Scalar , class Exp , Size rows_, Size cols_>
Size fiber::_RView< Scalar, Exp, rows_, cols_ >::size ( ) const
inline

Definition at line 52 of file view.h.

Member Data Documentation

template<typename Scalar , class Exp , Size rows_, Size cols_>
Exp const& fiber::_RView< Scalar, Exp, rows_, cols_ >::A_
protected

underlying matrix expression

Definition at line 35 of file view.h.

template<typename Scalar , class Exp , Size rows_, Size cols_>
Index fiber::_RView< Scalar, Exp, rows_, cols_ >::i_
protected

Definition at line 36 of file view.h.

template<typename Scalar , class Exp , Size rows_, Size cols_>
Index fiber::_RView< Scalar, Exp, rows_, cols_ >::j_
protected

Definition at line 37 of file view.h.


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