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