#include <jive/solver/GenericConstrainer.h>
virtual jive::solver::GenericConstrainer::~GenericConstrainer |
( |
| ) |
|
|
protectedvirtual |
virtual void jive::solver::GenericConstrainer::update |
( |
| ) |
|
|
virtual |
virtual bool jive::solver::GenericConstrainer::updated |
( |
| ) |
const |
|
virtual |
virtual void jive::solver::GenericConstrainer::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::GenericConstrainer::getLhs |
( |
const Vector & |
x, |
|
|
const Vector & |
y |
|
) |
| const |
|
virtual |
virtual void jive::solver::GenericConstrainer::initLhs |
( |
const Vector & |
x, |
|
|
const Vector & |
y |
|
) |
| const |
|
virtual |
virtual Constraints* jive::solver::GenericConstrainer::getConstraints |
( |
| ) |
const |
|
virtual |
virtual AbstractMatrix* jive::solver::GenericConstrainer::getInputMatrix |
( |
| ) |
const |
|
virtual |
virtual AbstractMatrix* jive::solver::GenericConstrainer::getOutputMatrix |
( |
| ) |
const |
|
virtual |
static void jive::solver::GenericConstrainer::declare |
( |
| ) |
|
|
static |
const char* jive::solver::GenericConstrainer::TYPE_NAME |
|
static |