IFPACK Development
|
Ifpack_Krylov: class for smoothing with Krylov solvers in Ifpack. More...
#include <Ifpack_Krylov.h>
Public Member Functions | |
Ifpack_Krylov (Epetra_Operator *Matrix) | |
Ifpack_Krylov (Epetra_RowMatrix *Matrix) | |
Ifpack_Krylov constructor with given Epetra_Operator/Epetra_RowMatrix. | |
virtual | ~Ifpack_Krylov () |
Destructor. | |
virtual int | SetUseTranspose (bool UseTranspose_in) |
virtual int | Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
Applies the matrix to an Epetra_MultiVector. | |
virtual int | ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
Applies the preconditioner to X, returns the result in Y. | |
virtual double | NormInf () const |
Returns the infinity norm of the global matrix (not implemented) | |
virtual const char * | Label () const |
virtual bool | UseTranspose () const |
Returns the current UseTranspose setting. | |
virtual bool | HasNormInf () const |
Returns true if the this object can provide an approximate Inf-norm, false otherwise. | |
virtual const Epetra_Comm & | Comm () const |
Returns a pointer to the Epetra_Comm communicator associated with this operator. | |
virtual const Epetra_Map & | OperatorDomainMap () const |
Returns the Epetra_Map object associated with the domain of this operator. | |
virtual const Epetra_Map & | OperatorRangeMap () const |
Returns the Epetra_Map object associated with the range of this operator. | |
virtual int | Initialize () |
Computes all it is necessary to initialize the preconditioner. | |
virtual bool | IsInitialized () const |
Returns true if the preconditioner has been successfully initialized, false otherwise. | |
virtual bool | IsComputed () const |
Returns true if the preconditioner has been successfully computed. | |
virtual int | Compute () |
Computes the preconditioners. | |
virtual const Epetra_RowMatrix & | Matrix () const |
Returns a pointer to the matrix to be preconditioned. | |
virtual double | Condest (const Ifpack_CondestType CT=Ifpack_Cheap, const int MaxIters=1550, const double Tol=1e-9, Epetra_RowMatrix *Matrix_in=0) |
Computes the condition number estimates and returns the value. | |
virtual double | Condest () const |
Returns the condition number estimate, or -1.0 if not computed. | |
virtual int | SetParameters (Teuchos::ParameterList &List) |
Sets all the parameters for the preconditioner. | |
virtual std::ostream & | Print (std::ostream &os) const |
Prints object to an output stream. | |
virtual int | NumInitialize () const |
Returns the number of calls to Initialize(). | |
virtual int | NumCompute () const |
Returns the number of calls to Compute(). | |
virtual int | NumApplyInverse () const |
Returns the number of calls to ApplyInverse(). | |
virtual double | InitializeTime () const |
Returns the time spent in Initialize(). | |
virtual double | ComputeTime () const |
Returns the time spent in Compute(). | |
virtual double | ApplyInverseTime () const |
Returns the time spent in ApplyInverse(). | |
virtual double | InitializeFlops () const |
Returns the number of flops in the initialization phase. | |
virtual double | ComputeFlops () const |
Returns the number of flops in the computation phase. | |
virtual double | ApplyInverseFlops () const |
Returns the number of flops for the application of the preconditioner. | |
Ifpack_Krylov: class for smoothing with Krylov solvers in Ifpack.
Definition at line 81 of file Ifpack_Krylov.h.
Ifpack_Krylov::Ifpack_Krylov | ( | Epetra_Operator * | Matrix | ) |
Definition at line 67 of file Ifpack_Krylov.cpp.
Ifpack_Krylov::Ifpack_Krylov | ( | Epetra_RowMatrix * | Matrix | ) |
Ifpack_Krylov constructor with given Epetra_Operator/Epetra_RowMatrix.
Definition at line 109 of file Ifpack_Krylov.cpp.
|
inlinevirtual |
Destructor.
Definition at line 97 of file Ifpack_Krylov.h.
|
virtual |
Applies the matrix to an Epetra_MultiVector.
X | - (In) A Epetra_MultiVector of dimension NumVectors to multiply with matrix. |
Y | - (Out) A Epetra_MultiVector of dimension NumVectors containing the result. |
Implements Epetra_Operator.
Definition at line 177 of file Ifpack_Krylov.cpp.
References IsComputed(), Epetra_MultiVector::NumVectors(), and UseTranspose().
|
virtual |
Applies the preconditioner to X, returns the result in Y.
X | - (In) A Epetra_MultiVector of dimension NumVectors to be preconditioned. |
Y | - (InOut) A Epetra_MultiVector of dimension NumVectors containing result. |
Implements Ifpack_Preconditioner.
Definition at line 379 of file Ifpack_Krylov.cpp.
References IsComputed(), Epetra_MultiVector::NumVectors(), and Epetra_MultiVector::PutScalar().
|
inlinevirtual |
Returns the number of flops for the application of the preconditioner.
Implements Ifpack_Preconditioner.
Definition at line 268 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns the time spent in ApplyInverse().
Implements Ifpack_Preconditioner.
Definition at line 250 of file Ifpack_Krylov.h.
|
virtual |
Returns a pointer to the Epetra_Comm communicator associated with this operator.
Implements Epetra_Operator.
Definition at line 159 of file Ifpack_Krylov.cpp.
Referenced by Initialize(), and Print().
|
virtual |
Computes the preconditioners.
Implements Ifpack_Preconditioner.
Definition at line 233 of file Ifpack_Krylov.cpp.
References Compute(), Initialize(), IsInitialized(), and SetParameters().
Referenced by Compute().
|
inlinevirtual |
Returns the number of flops in the computation phase.
Implements Ifpack_Preconditioner.
Definition at line 262 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns the time spent in Compute().
Implements Ifpack_Preconditioner.
Definition at line 244 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns the condition number estimate, or -1.0 if not computed.
Implements Ifpack_Preconditioner.
Definition at line 204 of file Ifpack_Krylov.h.
Referenced by Print().
|
virtual |
Computes the condition number estimates and returns the value.
Implements Ifpack_Preconditioner.
Definition at line 357 of file Ifpack_Krylov.cpp.
References IsComputed().
|
inlinevirtual |
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
Implements Epetra_Operator.
Definition at line 162 of file Ifpack_Krylov.h.
|
virtual |
Computes all it is necessary to initialize the preconditioner.
Implements Ifpack_Preconditioner.
Definition at line 199 of file Ifpack_Krylov.cpp.
References Comm(), and Matrix().
Referenced by Compute().
|
inlinevirtual |
Returns the number of flops in the initialization phase.
Implements Ifpack_Preconditioner.
Definition at line 256 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns the time spent in Initialize().
Implements Ifpack_Preconditioner.
Definition at line 238 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns true
if the preconditioner has been successfully computed.
Implements Ifpack_Preconditioner.
Definition at line 184 of file Ifpack_Krylov.h.
Referenced by Apply(), ApplyInverse(), and Condest().
|
inlinevirtual |
Returns true if the preconditioner has been successfully initialized, false otherwise.
Implements Ifpack_Preconditioner.
Definition at line 178 of file Ifpack_Krylov.h.
Referenced by Compute().
|
inlinevirtual |
Implements Epetra_Operator.
Definition at line 150 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns a pointer to the matrix to be preconditioned.
Implements Ifpack_Preconditioner.
Definition at line 192 of file Ifpack_Krylov.h.
Referenced by Initialize().
|
inlinevirtual |
Returns the infinity norm of the global matrix (not implemented)
Implements Epetra_Operator.
Definition at line 142 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns the number of calls to ApplyInverse().
Implements Ifpack_Preconditioner.
Definition at line 232 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns the number of calls to Compute().
Implements Ifpack_Preconditioner.
Definition at line 226 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns the number of calls to Initialize().
Implements Ifpack_Preconditioner.
Definition at line 220 of file Ifpack_Krylov.h.
|
virtual |
Returns the Epetra_Map object associated with the domain of this operator.
Implements Epetra_Operator.
Definition at line 165 of file Ifpack_Krylov.cpp.
|
virtual |
Returns the Epetra_Map object associated with the range of this operator.
Implements Epetra_Operator.
Definition at line 171 of file Ifpack_Krylov.cpp.
|
virtual |
Prints object to an output stream.
Implements Ifpack_Preconditioner.
Definition at line 310 of file Ifpack_Krylov.cpp.
|
virtual |
Sets all the parameters for the preconditioner.
Implements Ifpack_Preconditioner.
Definition at line 144 of file Ifpack_Krylov.cpp.
Referenced by Compute().
|
inlinevirtual |
This flag can be used to apply the preconditioner to the transpose of the input operator.
Implements Epetra_Operator.
Definition at line 107 of file Ifpack_Krylov.h.
|
inlinevirtual |
Returns the current UseTranspose setting.
Implements Epetra_Operator.
Definition at line 156 of file Ifpack_Krylov.h.
Referenced by Apply().