#include <rnmat.hh>
Inheritance diagram for RVL::GenMat< T >:
Public Member Functions | |
GenMat (RnSpace< T > const &_dom, RnSpace< T > const &_rng) | |
main constructor requires only domain and range | |
GenMat (GenMat< T > const &m) | |
copy constructor, used in clone | |
~GenMat () | |
Space< T > const & | getDomain () const |
Space< T > const & | getRange () const |
int | getNRows () const |
convenience access to row and col dims | |
int | getNCols () const |
T * | getData () |
access to data - essential for typical apps, eg. | |
T const * | getData () const |
T const & | getElement (int i, int j) const |
element access - not so useful, but bound-checked and why not | |
T & | getElement (int i, int j) |
virtual void | setElement (int i, int j, T e) |
void | eval (UnaryLocalFunctionObject< T > &f) |
matvec< T > const & | getMatVec () const |
matvec< T > & | getMatVec () |
virtual ostream & | write (ostream &str) const |
Protected Member Functions | |
virtual LinearOp< T > * | clone () const |
void | apply (Vector< T > const &x, Vector< T > &y) const |
void | applyAdj (Vector< T > const &x, Vector< T > &y) const |
A serious Matrix library would build on one of the standard libraries, like GSL or even LAPACK. This set of classes is self-contained and sufficient for testing and simple low-dimensional apps.
Definition at line 206 of file rnmat.hh.
RVL::GenMat< T >::GenMat | ( | RnSpace< T > const & | _dom, | |
RnSpace< T > const & | _rng | |||
) |
RVL::GenMat< T >::GenMat | ( | GenMat< T > const & | m | ) |
RVL::GenMat< T >::~GenMat | ( | ) |
virtual LinearOp<T>* RVL::GenMat< T >::clone | ( | ) | const [protected, virtual] |
void RVL::GenMat< T >::apply | ( | Vector< T > const & | x, | |
Vector< T > & | y | |||
) | const [protected] |
void RVL::GenMat< T >::applyAdj | ( | Vector< T > const & | x, | |
Vector< T > & | y | |||
) | const [protected, virtual] |
Implements RVL::LinearOp< T >.
Definition at line 231 of file rnmat.hh.
References RVL::Vector< Scalar >::eval().
Space<T> const& RVL::GenMat< T >::getDomain | ( | ) | const [virtual] |
Implements RVL::Operator< Scalar >.
Definition at line 255 of file rnmat.hh.
Referenced by RVL::SymMat< T >::write().
Space<T> const& RVL::GenMat< T >::getRange | ( | ) | const [virtual] |
int RVL::GenMat< T >::getNRows | ( | ) | const |
convenience access to row and col dims
Definition at line 259 of file rnmat.hh.
References RVL::RnSpace< Scalar >::getSize().
int RVL::GenMat< T >::getNCols | ( | ) | const |
T* RVL::GenMat< T >::getData | ( | ) |
T const* RVL::GenMat< T >::getData | ( | ) | const |
T const& RVL::GenMat< T >::getElement | ( | int | i, | |
int | j | |||
) | const |
T& RVL::GenMat< T >::getElement | ( | int | i, | |
int | j | |||
) |
virtual void RVL::GenMat< T >::setElement | ( | int | i, | |
int | j, | |||
T | e | |||
) | [virtual] |
void RVL::GenMat< T >::eval | ( | UnaryLocalFunctionObject< T > & | f | ) |
matvec<T> const& RVL::GenMat< T >::getMatVec | ( | ) | const |
matvec<T>& RVL::GenMat< T >::getMatVec | ( | ) |
virtual ostream& RVL::GenMat< T >::write | ( | ostream & | str | ) | const [virtual] |
Implements RVL::Writeable.
Reimplemented in RVL::SymMat< T >.
Definition at line 293 of file rnmat.hh.
References RVL::RnSpace< Scalar >::getSize().