|
AztecOO Development
|
Condition number estimator using AztecOO. More...
#include <AztecOO_ConditionNumber.h>

Public Types | |
| enum | SolverType { CG_ , GMRES_ } |
| Solver type to use. More... | |
Public Member Functions | |
| AztecOOConditionNumber () | |
| Constructor. | |
| ~AztecOOConditionNumber () | |
| Destructor. | |
| void | initialize (const Epetra_Operator &op, SolverType solverType=GMRES_, int krylovSubspaceSize=100, bool printSolve=false) |
| Initialization. | |
| int | computeConditionNumber (int maxIters, double tol) |
| Estimates the condition number. | |
| double | getConditionNumber () |
| Return condition number computed by last call to computeConditionNumber. | |
Protected Member Functions | |
| void | freeMemory () |
| Frees all memory allocated with new by this object. | |
Protected Attributes | |
| double | conditionNumber_ |
| Condition number calculated in computeConditionNumber. | |
| Epetra_Map * | domainMap_ |
| Map to create left hand side vector. | |
| Epetra_Map * | rangeMap_ |
| Map to create right hand side vector. | |
| Epetra_Operator * | operator_ |
| Operator supplied by user in initialization. | |
| Epetra_Vector * | rhs_ |
| RHS vector. This is initializaed to a random vector. | |
| Epetra_Vector * | dummy_ |
| Dummy vector. Initializaed to zero. | |
| AztecOO * | solver_ |
| solver object. | |
| bool | printSolve_ |
| Conditional for printing solve to output. | |
Condition number estimator using AztecOO.
This object will estimate the condition number of an Epetra_Operator.
| AztecOOConditionNumber::AztecOOConditionNumber | ( | ) |
Constructor.
References conditionNumber_, domainMap_, dummy_, operator_, printSolve_, rangeMap_, rhs_, and solver_.
| AztecOOConditionNumber::~AztecOOConditionNumber | ( | ) |
Destructor.
References freeMemory().
| int AztecOOConditionNumber::computeConditionNumber | ( | int | maxIters, |
| double | tol ) |
Estimates the condition number.
References conditionNumber_, AztecOO::GetAztecStatus(), AztecOO::Iterate(), and solver_.
|
protected |
Frees all memory allocated with new by this object.
References domainMap_, dummy_, rangeMap_, rhs_, and solver_.
Referenced by initialize(), and ~AztecOOConditionNumber().
| double AztecOOConditionNumber::getConditionNumber | ( | ) |
Return condition number computed by last call to computeConditionNumber.
References conditionNumber_.
| void AztecOOConditionNumber::initialize | ( | const Epetra_Operator & | op, |
| SolverType | solverType = GMRES_, | ||
| int | krylovSubspaceSize = 100, | ||
| bool | printSolve = false ) |
Initialization.
References AztecOO::AztecOO(), domainMap_, dummy_, freeMemory(), GMRES_, operator_, rangeMap_, rhs_, AztecOO::SetAztecOption(), and solver_.
|
protected |
Condition number calculated in computeConditionNumber.
Referenced by AztecOOConditionNumber(), computeConditionNumber(), and getConditionNumber().
|
protected |
Map to create left hand side vector.
Referenced by AztecOOConditionNumber(), freeMemory(), and initialize().
|
protected |
Dummy vector. Initializaed to zero.
Referenced by AztecOOConditionNumber(), freeMemory(), and initialize().
|
protected |
Operator supplied by user in initialization.
Referenced by AztecOOConditionNumber(), and initialize().
|
protected |
Conditional for printing solve to output.
Referenced by AztecOOConditionNumber().
|
protected |
Map to create right hand side vector.
Referenced by AztecOOConditionNumber(), freeMemory(), and initialize().
|
protected |
RHS vector. This is initializaed to a random vector.
Referenced by AztecOOConditionNumber(), freeMemory(), and initialize().
|
protected |
solver object.
Referenced by AztecOOConditionNumber(), computeConditionNumber(), freeMemory(), and initialize().