|
Belos Version of the Day
|
Fischer Method 1 style projection utility. More...
#include <BelosSolutionProjection.hpp>
Public Types | |
| typedef MultiVecTraits< ScalarType, MV, DM > | MVT |
| typedef OperatorTraits< ScalarType, MV, OP > | OPT |
| typedef DenseMatTraits< ScalarType, DM > | DMT |
| typedef Teuchos::ScalarTraits< ScalarType > | SCT |
| typedef SCT::magnitudeType | MagnitudeType |
| typedef Teuchos::ScalarTraits< MagnitudeType > | MT |
Public Member Functions | |
| SolutionProjection (const Teuchos::RCP< const OP > &A, const int maxBasisSize) | |
| Constructor with explicit maximum basis size. | |
| SolutionProjection (const Teuchos::RCP< const OP > &A, const Teuchos::RCP< Teuchos::ParameterList > ¶ms) | |
| Constructor with parameter list. | |
| void | setOperator (const Teuchos::RCP< const OP > &A) |
| Set or replace the operator. | |
| void | reset () |
| Clear the stored projection basis. | |
| int | getBasisSize () const |
| Current number of stored basis vectors. | |
| int | getMaxBasisSize () const |
| Maximum number of stored basis vectors. | |
| void | setReplacementStrategy (const std::string &strategy) |
| Set replacement strategy. | |
| std::string | getReplacementStrategy () const |
| Get replacement strategy. | |
| void | setProjectionTolerance (const MagnitudeType tol) |
| Set relative projection tolerance. | |
| MagnitudeType | getProjectionTolerance () const |
| Get relative projection tolerance. | |
| void | setReorthogonalizationSteps (const int steps) |
| Set number of reorthogonalization passes. | |
| int | getReorthogonalizationSteps () const |
| Get number of reorthogonalization passes. | |
| Teuchos::RCP< const MV > | getCorrectionBasis () const |
| Get correction basis U. | |
| Teuchos::RCP< const MV > | getImageBasis () const |
| Get image basis C. | |
| int | addSolution (const MV &u) |
| Add solution vector(s) u. The class computes c = A u. | |
| int | addPair (const MV &u, const MV &c) |
| Add pair(s) u and c, where c should equal A u. | |
| void | project (MV &x, MV &r) const |
| Apply projection to x and r, where r is assumed to be b - A x. | |
| void | project (MV &x, const MV &b, Teuchos::RCP< MV > projectedResidual=Teuchos::null) const |
| Compute r = b - A x, then apply projection to x and r. | |
| void | project (LinearProblem< ScalarType, MV, OP, DM > &problem, Teuchos::RCP< MV > projectedResidual=Teuchos::null) const |
| Project the current solution in a LinearProblem. | |
Fischer Method 1 style projection utility.
The class stores a correction basis U and an orthonormal image basis C satisfying A U = C. The projection is minimum-residual over range(U).
This utility is intended to be used as a black-box initial-guess generator for sequences of related linear systems.
Definition at line 76 of file BelosSolutionProjection.hpp.
| typedef MultiVecTraits<ScalarType,MV,DM> Belos::SolutionProjection< ScalarType, MV, OP, DM >::MVT |
Definition at line 78 of file BelosSolutionProjection.hpp.
| typedef OperatorTraits<ScalarType,MV,OP> Belos::SolutionProjection< ScalarType, MV, OP, DM >::OPT |
Definition at line 79 of file BelosSolutionProjection.hpp.
| typedef DenseMatTraits<ScalarType,DM> Belos::SolutionProjection< ScalarType, MV, OP, DM >::DMT |
Definition at line 80 of file BelosSolutionProjection.hpp.
| typedef Teuchos::ScalarTraits<ScalarType> Belos::SolutionProjection< ScalarType, MV, OP, DM >::SCT |
Definition at line 81 of file BelosSolutionProjection.hpp.
| typedef SCT::magnitudeType Belos::SolutionProjection< ScalarType, MV, OP, DM >::MagnitudeType |
Definition at line 82 of file BelosSolutionProjection.hpp.
| typedef Teuchos::ScalarTraits<MagnitudeType> Belos::SolutionProjection< ScalarType, MV, OP, DM >::MT |
Definition at line 83 of file BelosSolutionProjection.hpp.
|
inline |
Constructor with explicit maximum basis size.
Definition at line 86 of file BelosSolutionProjection.hpp.
|
inline |
Constructor with parameter list.
Definition at line 101 of file BelosSolutionProjection.hpp.
|
inline |
Set or replace the operator.
Changing the operator invalidates the stored relation A U = C, so the basis is reset.
Definition at line 131 of file BelosSolutionProjection.hpp.
|
inline |
Clear the stored projection basis.
Definition at line 137 of file BelosSolutionProjection.hpp.
|
inline |
Current number of stored basis vectors.
Definition at line 142 of file BelosSolutionProjection.hpp.
|
inline |
Maximum number of stored basis vectors.
Definition at line 147 of file BelosSolutionProjection.hpp.
|
inline |
Set replacement strategy.
Definition at line 152 of file BelosSolutionProjection.hpp.
|
inline |
Get replacement strategy.
Definition at line 158 of file BelosSolutionProjection.hpp.
|
inline |
Set relative projection tolerance.
Definition at line 163 of file BelosSolutionProjection.hpp.
|
inline |
Get relative projection tolerance.
Definition at line 169 of file BelosSolutionProjection.hpp.
|
inline |
Set number of reorthogonalization passes.
Definition at line 174 of file BelosSolutionProjection.hpp.
|
inline |
Get number of reorthogonalization passes.
Definition at line 180 of file BelosSolutionProjection.hpp.
|
inline |
Get correction basis U.
Definition at line 185 of file BelosSolutionProjection.hpp.
|
inline |
Get image basis C.
Definition at line 199 of file BelosSolutionProjection.hpp.
|
inline |
Add solution vector(s) u. The class computes c = A u.
Definition at line 213 of file BelosSolutionProjection.hpp.
|
inline |
Add pair(s) u and c, where c should equal A u.
Definition at line 234 of file BelosSolutionProjection.hpp.
|
inline |
Apply projection to x and r, where r is assumed to be b - A x.
Definition at line 280 of file BelosSolutionProjection.hpp.
|
inline |
Compute r = b - A x, then apply projection to x and r.
Definition at line 312 of file BelosSolutionProjection.hpp.
|
inline |
Project the current solution in a LinearProblem.
Definition at line 347 of file BelosSolutionProjection.hpp.
1.9.8