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

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

#include <fiber/view.h>

Inheritance diagram for fiber::LView< Scalar, Exp, rows_, cols_ >:
fiber::_LValue< Scalar, LView< Scalar, Exp, rows_, cols_ > >

Public Types

enum  { ROWS_ = rows_, COLS_ = cols_, SIZE_ = rows_ * cols_ }
 
typedef _LValue< Scalar, ThisTypeLValueType
 
typedef LView< Scalar, Exp,
rows_, cols_ > 
ThisType
 
- Public Types inherited from fiber::_LValue< Scalar, LView< Scalar, Exp, rows_, cols_ > >
typedef StreamAssignment
< _LValue< Scalar, LView
< Scalar, Exp, rows_, cols_ > > > 
StreamAssign
 

Public Member Functions

Size cols () const
 
 LView (Exp &A, Index i, Index j)
 
Scalar const & operator() (Index i, Index j) const
 return the evaluated (j,i)'th element of a matrix expression More...
 
Scalar & operator() (Index i, Index j)
 return the evaluated (j,i)'th element of a matrix expression More...
 
template<class OtherExp >
ThisTypeoperator= (const _RValue< Scalar, OtherExp > &other)
 
Scalar const & operator[] (Index k) const
 return the evaluated i'th element of a vector expression More...
 
Scalar & operator[] (Index k)
 return the evaluated i'th element of a vector expression More...
 
Size rows () const
 
Size size () const
 
- Public Member Functions inherited from fiber::_LValue< Scalar, LView< Scalar, Exp, rows_, cols_ > >
Size cols () const
 
Scalar & operator() (Size i, Size j)
 
Scalar const & operator() (Size i, Size j) const
 
StreamAssign operator<< (Scalar x)
 returns a stream for assignment More...
 
_LValue< Scalar, LView< Scalar,
Exp, rows_, cols_ > > & 
operator= (_RValue< Scalar, Exp2 > const &B)
 
Scalar & operator[] (Size i)
 
Scalar const & operator[] (Size i) const
 
Size rows () const
 
Size size () const
 

Protected Attributes

Exp & A_
 
Index i_
 
Index j_
 

Detailed Description

template<typename Scalar, class Exp, int rows_, int cols_>
class fiber::LView< Scalar, Exp, rows_, cols_ >

expression template for subset of a matrix expression

Definition at line 103 of file view.h.

Member Typedef Documentation

template<typename Scalar , class Exp , int rows_, int cols_>
typedef _LValue<Scalar, ThisType> fiber::LView< Scalar, Exp, rows_, cols_ >::LValueType

Definition at line 112 of file view.h.

template<typename Scalar , class Exp , int rows_, int cols_>
typedef LView<Scalar, Exp, rows_, cols_> fiber::LView< Scalar, Exp, rows_, cols_ >::ThisType

Definition at line 111 of file view.h.

Member Enumeration Documentation

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

Definition at line 114 of file view.h.

Constructor & Destructor Documentation

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

Definition at line 120 of file view.h.

Member Function Documentation

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

Definition at line 125 of file view.h.

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

return the evaluated (j,i)'th element of a matrix expression

Definition at line 144 of file view.h.

template<typename Scalar , class Exp , int rows_, int cols_>
Scalar& fiber::LView< Scalar, Exp, rows_, cols_ >::operator() ( Index  i,
Index  j 
)
inline

return the evaluated (j,i)'th element of a matrix expression

Definition at line 149 of file view.h.

template<typename Scalar , class Exp , int rows_, int cols_>
template<class OtherExp >
ThisType& fiber::LView< Scalar, Exp, rows_, cols_ >::operator= ( const _RValue< Scalar, OtherExp > &  other)
inline

Definition at line 154 of file view.h.

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

return the evaluated i'th element of a vector expression

Definition at line 128 of file view.h.

template<typename Scalar , class Exp , int rows_, int cols_>
Scalar& fiber::LView< Scalar, Exp, rows_, cols_ >::operator[] ( Index  k)
inline

return the evaluated i'th element of a vector expression

Definition at line 136 of file view.h.

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

Definition at line 124 of file view.h.

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

Definition at line 123 of file view.h.

Member Data Documentation

template<typename Scalar , class Exp , int rows_, int cols_>
Exp& fiber::LView< Scalar, Exp, rows_, cols_ >::A_
protected

Definition at line 106 of file view.h.

template<typename Scalar , class Exp , int rows_, int cols_>
Index fiber::LView< Scalar, Exp, rows_, cols_ >::i_
protected

Definition at line 107 of file view.h.

template<typename Scalar , class Exp , int rows_, int cols_>
Index fiber::LView< Scalar, Exp, rows_, cols_ >::j_
protected

Definition at line 108 of file view.h.


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