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

#include <jive/solver/PointConstrainer.h>

Inheritance diagram for jive::solver::PointConstrainer:
Inheritance graph

Public Member Functions

 PointConstrainer (const String &name, Ref< Constraints > cons, Ref< AbstractMatrix > input, Ref< SparseMatrixObj > output=NIL)
 
virtual void update ()
 
virtual bool updated () const
 
virtual void getRhs (const Vector &g, const Vector &f) const
 Computes a right-hand side vector for the constrained system of equations. More...
 
virtual void getLhs (const Vector &x, const Vector &y) const
 
virtual void initLhs (const Vector &x, const Vector &y) const
 
virtual ConstraintsgetConstraints () const
 
virtual AbstractMatrixgetInputMatrix () const
 
virtual AbstractMatrixgetOutputMatrix () const
 
- Public Member Functions inherited from jive::solver::Constrainer
virtual void apply ()=0
 Updates the coefficient matrix of the constrained system of equations. More...
 
virtual void getSolution (const Vector &x, const Vector &y) const =0
 Computes the solution of the original system of equations. More...
 
virtual Shape inputMatrixShape () const =0
 Returns the shape of the input matrix. More...
 
virtual Shape outputMatrixShape () const =0
 Returns the shape of the output matrix. More...
 

Static Public Member Functions

static Ref< ConstrainermakeNew (const String &name, const Properties &conf, const Properties &props, Ref< Constraints > cons, Ref< AbstractMatrix > matrix)
 
static void declare ()
 

Static Public Attributes

static const char * TYPE_NAME
 
static const char * MODE_PROP
 

Protected Member Functions

virtual ~PointConstrainer ()
 
virtual void doUpdate_ ()=0
 
- Protected Member Functions inherited from jive::solver::Constrainer
virtual ~Constrainer ()
 

Protected Attributes

Ref< Constraintscons_
 
Ref< AbstractMatrixinput_
 
Ref< SparseMatrixObj > output_
 
BoolVector dofMask_
 
IdxVector slaveDofs_
 
Vector rvalues_
 
Vector rhs_
 
int events_
 

Static Protected Attributes

static const int NEW_RVALUES_
 
static const int NEW_SLAVE_DOFS_
 
static const int NEW_MAT_VALUES_
 
static const int NEW_MAT_STRUCT_
 

Additional Inherited Members

- Public Types inherited from jive::solver::Constrainer
typedef jem::Tuple< int, 2 > Shape
 A type representing the shape of a matrix. More...
 
typedef util::Vector Vector
 A vector type. More...
 

Constructor & Destructor Documentation

jive::solver::PointConstrainer::PointConstrainer ( const String name,
Ref< Constraints cons,
Ref< AbstractMatrix input,
Ref< SparseMatrixObj >  output = NIL 
)
virtual jive::solver::PointConstrainer::~PointConstrainer ( )
protectedvirtual

Member Function Documentation

virtual void jive::solver::PointConstrainer::update ( )
virtual
virtual bool jive::solver::PointConstrainer::updated ( ) const
virtual
virtual void jive::solver::PointConstrainer::getRhs ( const Vector g,
const Vector f 
) const
virtual

Computes a right-hand side vector for the constrained system of equations given a right-hand side vector for the original system of equations. The output parameter g will be set to the constrained right-hand side vector. The input parameter f should contain the original right-hand side vector.

Before calling this function you must have called the function apply(), unless the coefficient matrix of the original system of equations and the constraints have not been modified.

Parameters
g- the right-hand side vector for the constrained system of equations.
f- the right-hand side vector for the original system of equations.
Precondition
g.size() == getOutputMatrix()->shape()[0] &&
f.size() == getInputMatrix()->shape()[0]

Implements jive::solver::Constrainer.

virtual void jive::solver::PointConstrainer::getLhs ( const Vector x,
const Vector y 
) const
virtual
virtual void jive::solver::PointConstrainer::initLhs ( const Vector x,
const Vector y 
) const
virtual
virtual Constraints* jive::solver::PointConstrainer::getConstraints ( ) const
virtual
virtual AbstractMatrix* jive::solver::PointConstrainer::getInputMatrix ( ) const
virtual
virtual AbstractMatrix* jive::solver::PointConstrainer::getOutputMatrix ( ) const
virtual
static Ref<Constrainer> jive::solver::PointConstrainer::makeNew ( const String name,
const Properties conf,
const Properties props,
Ref< Constraints cons,
Ref< AbstractMatrix matrix 
)
static
static void jive::solver::PointConstrainer::declare ( )
static
virtual void jive::solver::PointConstrainer::doUpdate_ ( )
protectedpure virtual

Member Data Documentation

const char* jive::solver::PointConstrainer::TYPE_NAME
static
const char* jive::solver::PointConstrainer::MODE_PROP
static
const int jive::solver::PointConstrainer::NEW_RVALUES_
staticprotected
const int jive::solver::PointConstrainer::NEW_SLAVE_DOFS_
staticprotected
const int jive::solver::PointConstrainer::NEW_MAT_VALUES_
staticprotected
const int jive::solver::PointConstrainer::NEW_MAT_STRUCT_
staticprotected
Ref<Constraints> jive::solver::PointConstrainer::cons_
protected
Ref<AbstractMatrix> jive::solver::PointConstrainer::input_
protected
Ref<SparseMatrixObj> jive::solver::PointConstrainer::output_
protected
BoolVector jive::solver::PointConstrainer::dofMask_
protected
IdxVector jive::solver::PointConstrainer::slaveDofs_
protected
Vector jive::solver::PointConstrainer::rvalues_
protected
Vector jive::solver::PointConstrainer::rhs_
protected
int jive::solver::PointConstrainer::events_
protected