Jive reference manual
List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions
jive::solver::GCR Class Reference

#include <jive/solver/GCR.h>

Inheritance diagram for jive::solver::GCR:
Inheritance graph

Public Member Functions

 GCR (const String &name, Ref< AbstractMatrix > matrix, Ref< VectorSpace > vspace, Ref< Constraints > cons=NIL, Ref< AbstractMatrix > precon=NIL, Ref< GramSchmidt > grams=NIL)
 
virtual void getInfo (const Properties &info) const
 
virtual void configure (const Properties &props)
 
virtual void getConfig (const Properties &props) const
 
void setMaxVectors (idx_t count)
 
idx_t getMaxVectors () const
 
- Public Member Functions inherited from jive::solver::StdIterativeSolver
 StdIterativeSolver (const String &name, Ref< AbstractMatrix > matrix, Ref< VectorSpace > vspace, Ref< Constraints > cons=NIL)
 
virtual void improve (const Vector &lhs, const Vector &rhs)
 
virtual void setMode (int mode)
 
virtual int getMode () const
 
virtual void setPrecision (double eps)
 
virtual double getPrecision () const
 
virtual AbstractMatrixgetMatrix () const
 
virtual ConstraintsgetConstraints () const
 
virtual void setMaxIterCount (idx_t count)
 
virtual idx_t getMaxIterCount () const
 
void setUpdatePolicy (UpdatePolicy policy)
 
UpdatePolicy getUpdatePolicy () const
 
void getResidual (const Vector &r, const Vector &lhs, const Vector &rhs)
 
- Public Member Functions inherited from jive::solver::IterativeSolver
 IterativeSolver (const String &name="")
 
- Public Member Functions inherited from jive::solver::Solver
virtual void solve (const Vector &lhs, const Vector &rhs)=0
 Computes the solution of a linear system of equations. More...
 
virtual void configure (const Properties &conf, const Properties &props)
 Configures this solver given a set of properties. More...
 
virtual jem::ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
- Public Member Functions inherited from jem::Object
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Static Public Member Functions

static Ref< SolvermakeNew (const String &name, const Properties &conf, const Properties &props, const Properties &params, const Properties &globdat)
 
static void declare ()
 
- Static Public Member Functions inherited from jive::solver::StdIterativeSolver
static bool decodeParams (Ref< AbstractMatrix > &matrix, Ref< VectorSpace > &vspace, Ref< Constraints > &cons, const Properties &params)
 
- Static Public Member Functions inherited from jive::solver::Solver
static jem::ClassgetType ()
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Static Public Attributes

static const char * TYPE_NAME
 
static const idx_t MAX_VECTORS
 
- Static Public Attributes inherited from jive::solver::StdIterativeSolver
static const double MAX_RESIDUAL
 
static const char * UPDATE_POLICIES [3]
 
- Static Public Attributes inherited from jive::solver::IterativeSolver
static const idx_t MAX_ITER
 

Protected Member Functions

virtual ~GCR ()
 
virtual void updatePrecon_ ()
 
virtual void solve_ (idx_t &iiter, double &error, double rscale, const Vector &lhs, const Vector &rhs)
 
- Protected Member Functions inherited from jive::solver::StdIterativeSolver
virtual ~StdIterativeSolver ()
 
void testCancelled_ ()
 
- Protected Member Functions inherited from jive::solver::IterativeSolver
virtual ~IterativeSolver ()
 
- Protected Member Functions inherited from jive::solver::Solver
virtual ~Solver ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Additional Inherited Members

- Public Types inherited from jive::solver::StdIterativeSolver
enum  UpdatePolicy {
  AUTO_UPDATE,
  NEVER_UPDATE,
  ALWAYS_UPDATE
}
 
- Public Types inherited from jive::solver::Solver
typedef jem::util::Properties Properties
 A type representing a set of properties. More...
 
typedef util::Vector Vector
 A type that represents a vector. More...
 
- Public Attributes inherited from jive::solver::IterativeSolver
Event< idx_t, double, Self & > nextIterEvent
 
Event< idx_t, double, Self & > restartEvent
 
- Protected Attributes inherited from jive::solver::StdIterativeSolver
Ref< AbstractMatrixmatrix_
 
Ref< VectorSpacevspace_
 
Ref< Constrainerconman_
 
int mode_
 
idx_t maxIter_
 
double precision_
 

Constructor & Destructor Documentation

jive::solver::GCR::GCR ( const String name,
Ref< AbstractMatrix matrix,
Ref< VectorSpace vspace,
Ref< Constraints cons = NIL,
Ref< AbstractMatrix precon = NIL,
Ref< GramSchmidt grams = NIL 
)
explicit
virtual jive::solver::GCR::~GCR ( )
protectedvirtual

Member Function Documentation

virtual void jive::solver::GCR::getInfo ( const Properties info) const
virtual

Reimplemented from jive::solver::StdIterativeSolver.

virtual void jive::solver::GCR::configure ( const Properties props)
virtual

Reimplemented from jive::solver::StdIterativeSolver.

virtual void jive::solver::GCR::getConfig ( const Properties props) const
virtual

Reimplemented from jive::solver::StdIterativeSolver.

void jive::solver::GCR::setMaxVectors ( idx_t  count)
idx_t jive::solver::GCR::getMaxVectors ( ) const
static Ref<Solver> jive::solver::GCR::makeNew ( const String name,
const Properties conf,
const Properties props,
const Properties params,
const Properties globdat 
)
static
static void jive::solver::GCR::declare ( )
static
virtual void jive::solver::GCR::updatePrecon_ ( )
protectedvirtual
virtual void jive::solver::GCR::solve_ ( idx_t &  iiter,
double &  error,
double  rscale,
const Vector lhs,
const Vector rhs 
)
protectedvirtual

Member Data Documentation

const char* jive::solver::GCR::TYPE_NAME
static
const idx_t jive::solver::GCR::MAX_VECTORS
static