|
Ifpack2 Templated Preconditioning Package
Version 1.0
|
A class for constructing and using a CG/GMRES smoother. More...
#include <Ifpack2_Krylov_decl.hpp>

Public Member Functions | |
| Krylov (const Teuchos::RCP< const Tpetra::RowMatrix< scalar_type, local_ordinal_type, global_ordinal_type, node_type > > &A) | |
| Krylov explicit constuctor with Tpetra::RowMatrix input. More... | |
| virtual | ~Krylov () |
| Krylov Destructor. More... | |
| void | setParameters (const Teuchos::ParameterList ¶ms) |
| Set parameters for the preconditioner. More... | |
| void | initialize () |
| Initialize Krylov preconditioner object. More... | |
| bool | isInitialized () const |
Returns true if the preconditioner has been successfully initialized. More... | |
| void | compute () |
| Setup iteration. More... | |
| bool | isComputed () const |
| If compute() is completed, this query returns true, otherwise it returns false. More... | |
Methods implementing Tpetra::Operator. | |
| void | apply (const Tpetra::MultiVector< scalar_type, local_ordinal_type, global_ordinal_type, node_type > &X, Tpetra::MultiVector< scalar_type, local_ordinal_type, global_ordinal_type, node_type > &Y, Teuchos::ETransp mode=Teuchos::NO_TRANS, scalar_type alpha=Teuchos::ScalarTraits< scalar_type >::one(), scalar_type beta=Teuchos::ScalarTraits< scalar_type >::zero()) const |
| Returns the result of a few iterations of CG/GMRES on a Tpetra::MultiVector X in Y. More... | |
| const Teuchos::RCP< const Tpetra::Map < local_ordinal_type, global_ordinal_type, node_type > > & | getDomainMap () const |
| Tpetra::Map representing the domain of this operator. More... | |
| const Teuchos::RCP< const Tpetra::Map < local_ordinal_type, global_ordinal_type, node_type > > & | getRangeMap () const |
| Tpetra::Map representing the range of this operator. More... | |
| bool | hasTransposeApply () const |
| Whether this object's apply() method can apply the transpose (or conjugate transpose, if applicable). More... | |
| magnitude_type | getCondEst () const |
| Returns the computed estimated condition number, or -1.0 if no computed. More... | |
Mathematical functions. | |
| const Teuchos::RCP< const Teuchos::Comm< int > > & | getComm () const |
| Returns the Tpetra::BlockMap object associated with the range of this matrix operator. More... | |
| Teuchos::RCP< const Tpetra::RowMatrix< scalar_type, local_ordinal_type, global_ordinal_type, node_type > > | getMatrix () const |
| Returns a reference to the matrix to be preconditioned. More... | |
| int | getNumInitialize () const |
| Returns the number of calls to Initialize(). More... | |
| int | getNumCompute () const |
| Returns the number of calls to Compute(). More... | |
| int | getNumApply () const |
| Returns the number of calls to apply(). More... | |
| double | getInitializeTime () const |
| Returns the time spent in Initialize(). More... | |
| double | getComputeTime () const |
| Returns the time spent in Compute(). More... | |
| double | getApplyTime () const |
| Returns the time spent in apply(). More... | |
| magnitude_type | computeCondEst (CondestType CT=Cheap, local_ordinal_type MaxIters=1550, magnitude_type Tol=1e-9, const Teuchos::Ptr< const Tpetra::RowMatrix< scalar_type, local_ordinal_type, global_ordinal_type, node_type > > &Matrix_in=Teuchos::null) |
| Computes the estimated condition number and returns the value. More... | |
Overridden from Teuchos::Describable | |
| std::string | description () const |
| Return a simple one-line description of this object. More... | |
| void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const |
| Print the object with some verbosity level to an FancyOStream object. More... | |
Public Member Functions inherited from Ifpack2::Preconditioner< MatrixType::scalar_type, MatrixType::local_ordinal_type, MatrixType::global_ordinal_type, MatrixType::node_type > | |
| virtual | ~Preconditioner () |
| Destructor. More... | |
| typedef MatrixType::scalar_type | scalar_type |
| The type of the entries of the input MatrixType. More... | |
| typedef BelosScalarType < scalar_type >::type | belos_scalar_type |
| The scalar type used by Belos (which may not be scalar_type) More... | |
| typedef MatrixType::local_ordinal_type | local_ordinal_type |
| The type of local indices in the input MatrixType. More... | |
| typedef MatrixType::global_ordinal_type | global_ordinal_type |
| The type of global indices in the input MatrixType. More... | |
| typedef MatrixType::node_type | node_type |
| The type of the Kokkos Node used by the input MatrixType. More... | |
| typedef Teuchos::ScalarTraits < scalar_type >::magnitudeType | magnitude_type |
| The type of the magnitude (absolute value) of a matrix entry. More... | |
| typedef Tpetra::MultiVector < scalar_type, local_ordinal_type, global_ordinal_type, node_type > | TMV |
| Tpetra MultiVector/Operator. More... | |
| TEUCHOS_DEPRECATED typedef MatrixType::scalar_type | Scalar |
| Preserved only for backwards compatibility. Please use "scalar_type". More... | |
| TEUCHOS_DEPRECATED typedef MatrixType::local_ordinal_type | LocalOrdinal |
| Preserved only for backwards compatibility. Please use "local_ordinal_type". More... | |
| TEUCHOS_DEPRECATED typedef MatrixType::global_ordinal_type | GlobalOrdinal |
| Preserved only for backwards compatibility. Please use "global_ordinal_type". More... | |
| TEUCHOS_DEPRECATED typedef MatrixType::node_type | Node |
| Preserved only for backwards compatibility. Please use "node_type". More... | |
| TEUCHOS_DEPRECATED typedef Teuchos::ScalarTraits < scalar_type >::magnitudeType | magnitudeType |
| Preserved only for backwards compatibility. Please use "magnitude_type". More... | |
A class for constructing and using a CG/GMRES smoother.
Ifpack2::Krylov computes a few iterations of CG/GMRES with zero initial guess as a smoother for a given Tpetra::RowMatrix.
For all valid parameters, see the method Krylov::setParameters.
| typedef MatrixType::scalar_type Ifpack2::Krylov< MatrixType, PrecType >::scalar_type |
The type of the entries of the input MatrixType.
| typedef BelosScalarType<scalar_type>::type Ifpack2::Krylov< MatrixType, PrecType >::belos_scalar_type |
The scalar type used by Belos (which may not be scalar_type)
| typedef MatrixType::local_ordinal_type Ifpack2::Krylov< MatrixType, PrecType >::local_ordinal_type |
The type of local indices in the input MatrixType.
| typedef MatrixType::global_ordinal_type Ifpack2::Krylov< MatrixType, PrecType >::global_ordinal_type |
The type of global indices in the input MatrixType.
| typedef MatrixType::node_type Ifpack2::Krylov< MatrixType, PrecType >::node_type |
The type of the Kokkos Node used by the input MatrixType.
| typedef Teuchos::ScalarTraits<scalar_type>::magnitudeType Ifpack2::Krylov< MatrixType, PrecType >::magnitude_type |
The type of the magnitude (absolute value) of a matrix entry.
| typedef Tpetra::MultiVector<scalar_type,local_ordinal_type,global_ordinal_type,node_type> Ifpack2::Krylov< MatrixType, PrecType >::TMV |
Tpetra MultiVector/Operator.
|
explicit |
Krylov explicit constuctor with Tpetra::RowMatrix input.
|
virtual |
Krylov Destructor.
|
virtual |
Set parameters for the preconditioner.
|
virtual |
Initialize Krylov preconditioner object.
Clear away any previously-allocated objects.
|
inlinevirtual |
Returns true if the preconditioner has been successfully initialized.
|
virtual |
|
inlinevirtual |
If compute() is completed, this query returns true, otherwise it returns false.
|
virtual |
Returns the result of a few iterations of CG/GMRES on a Tpetra::MultiVector X in Y.
| X | - (In) A Tpetra::MultiVector of dimension NumVectors to solve for. |
| Y | - (Out) A Tpetra::MultiVector of dimension NumVectors containing result. |
|
virtual |
Tpetra::Map representing the domain of this operator.
|
virtual |
Tpetra::Map representing the range of this operator.
| bool Ifpack2::Krylov< MatrixType, PrecType >::hasTransposeApply | ( | ) | const |
Whether this object's apply() method can apply the transpose (or conjugate transpose, if applicable).
|
inlinevirtual |
Returns the computed estimated condition number, or -1.0 if no computed.
| const Teuchos::RCP< const Teuchos::Comm< int > > & Ifpack2::Krylov< MatrixType, PrecType >::getComm | ( | ) | const |
Returns the Tpetra::BlockMap object associated with the range of this matrix operator.
|
virtual |
Returns a reference to the matrix to be preconditioned.
|
virtual |
Returns the number of calls to Initialize().
|
virtual |
Returns the number of calls to Compute().
|
virtual |
Returns the number of calls to apply().
|
virtual |
Returns the time spent in Initialize().
|
virtual |
Returns the time spent in Compute().
|
virtual |
Returns the time spent in apply().
|
virtual |
Computes the estimated condition number and returns the value.
| std::string Ifpack2::Krylov< MatrixType, PrecType >::description | ( | ) | const |
Return a simple one-line description of this object.
| void Ifpack2::Krylov< MatrixType, PrecType >::describe | ( | Teuchos::FancyOStream & | out, |
| const Teuchos::EVerbosityLevel | verbLevel = Teuchos::Describable::verbLevel_default |
||
| ) | const |
Print the object with some verbosity level to an FancyOStream object.
| TEUCHOS_DEPRECATED typedef MatrixType::scalar_type Ifpack2::Krylov< MatrixType, PrecType >::Scalar |
Preserved only for backwards compatibility. Please use "scalar_type".
| TEUCHOS_DEPRECATED typedef MatrixType::local_ordinal_type Ifpack2::Krylov< MatrixType, PrecType >::LocalOrdinal |
Preserved only for backwards compatibility. Please use "local_ordinal_type".
| TEUCHOS_DEPRECATED typedef MatrixType::global_ordinal_type Ifpack2::Krylov< MatrixType, PrecType >::GlobalOrdinal |
Preserved only for backwards compatibility. Please use "global_ordinal_type".
| TEUCHOS_DEPRECATED typedef MatrixType::node_type Ifpack2::Krylov< MatrixType, PrecType >::Node |
Preserved only for backwards compatibility. Please use "node_type".
| TEUCHOS_DEPRECATED typedef Teuchos::ScalarTraits<scalar_type>::magnitudeType Ifpack2::Krylov< MatrixType, PrecType >::magnitudeType |
Preserved only for backwards compatibility. Please use "magnitude_type".
1.8.5