RVL::matvec< T > Class Template Reference

Mat-Vec as FunctionObject. More...

#include <rnmat.hh>

Inheritance diagram for RVL::matvec< T >:

RVL::BinaryLocalFunctionObject< T > RVL::FunctionObject RVL::BinaryLocalEvaluation< T > RVL::Writeable RVL::LocalEvaluation< T > List of all members.

Public Member Functions

 matvec (int _rows, int _cols)
 matvec (matvec< T > const *m)
 ~matvec ()
T * getData ()
 expose data
T const * getData () const
void eval (UnaryLocalFunctionObject< T > &f)
 do something to all elements
T & getElement (int i, int j)
 mutable element access
T const & getElement (int i, int j) const
 const element access
void setAdj (bool flag) const
 toggle between operator and adjoint
bool getAdj () const
 tell the truth!
void operator() (LocalDataContainer< T > &y, LocalDataContainer< T > const &x)
string getName () const

Detailed Description

template<typename T>
class RVL::matvec< T >

Mat-Vec as FunctionObject.

Stores matrix as an RnArray. Provides action of matrix or of its transpose.

Definition at line 46 of file rnmat.hh.


Constructor & Destructor Documentation

template<typename T>
RVL::matvec< T >::matvec ( int  _rows,
int  _cols 
)

Definition at line 58 of file rnmat.hh.

References RVL::RnArray< Scalar >::getData().

template<typename T>
RVL::matvec< T >::matvec ( matvec< T > const *  m  ) 

Definition at line 61 of file rnmat.hh.

template<typename T>
RVL::matvec< T >::~matvec (  ) 

Definition at line 62 of file rnmat.hh.


Member Function Documentation

template<typename T>
T* RVL::matvec< T >::getData (  ) 

expose data

Definition at line 65 of file rnmat.hh.

References RVL::RnArray< Scalar >::getData().

template<typename T>
T const* RVL::matvec< T >::getData (  )  const

Definition at line 66 of file rnmat.hh.

References RVL::RnArray< Scalar >::getData().

template<typename T>
void RVL::matvec< T >::eval ( UnaryLocalFunctionObject< T > &  f  ) 

do something to all elements

Definition at line 69 of file rnmat.hh.

template<typename T>
T& RVL::matvec< T >::getElement ( int  i,
int  j 
)

mutable element access

Definition at line 72 of file rnmat.hh.

References RVL::RnArray< Scalar >::getData().

template<typename T>
T const& RVL::matvec< T >::getElement ( int  i,
int  j 
) const

const element access

Definition at line 89 of file rnmat.hh.

References RVL::RnArray< Scalar >::getData().

template<typename T>
void RVL::matvec< T >::setAdj ( bool  flag  )  const

toggle between operator and adjoint

Definition at line 106 of file rnmat.hh.

template<typename T>
bool RVL::matvec< T >::getAdj (  )  const

tell the truth!

Definition at line 108 of file rnmat.hh.

template<typename T>
void RVL::matvec< T >::operator() ( LocalDataContainer< T > &  y,
LocalDataContainer< T > const &  x 
) [virtual]

Implements RVL::BinaryLocalEvaluation< T >.

Definition at line 116 of file rnmat.hh.

References RVL::RnArray< Scalar >::getData(), RVL::LocalDataContainer< DataType >::getData(), and RVL::LocalDataContainer< DataType >::getSize().

template<typename T>
string RVL::matvec< T >::getName (  )  const [virtual]

Implements RVL::FunctionObject.

Definition at line 151 of file rnmat.hh.


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for LocalRVL by  doxygen 1.4.7