|
| | Diagonal (const Teuchos::RCP< const MatrixType > &A) |
| | Constructor to create a Diagonal preconditioner using a Tpetra::CrsMatrix. More...
|
| |
| | Diagonal (const Teuchos::RCP< const Tpetra::Vector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &diag) |
| | Constructor to create a Diagonal preconditioner using a Tpetra::Vector. More...
|
| |
| virtual | ~Diagonal () |
| | Destructor. More...
|
| |
| void | setParameters (const Teuchos::ParameterList ¶ms) |
| | Sets parameters on this object. More...
|
| |
| void | initialize () |
| | Initialize. More...
|
| |
| bool | isInitialized () const |
| | Returns true if the preconditioner has been successfully initialized. More...
|
| |
| void | compute () |
| | compute the preconditioner More...
|
| |
| bool | isComputed () const |
| | Return true if compute() has been called. More...
|
| |
|
| void | apply (const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &X, Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Y, Teuchos::ETransp mode=Teuchos::NO_TRANS, Scalar alpha=Teuchos::ScalarTraits< Scalar >::one(), Scalar beta=Teuchos::ScalarTraits< Scalar >::zero()) const |
| | Applies the preconditioner to X, returns the result in Y. More...
|
| |
| const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > & | getDomainMap () const |
| | Returns the Tpetra::Map object associated with the domain of this operator. More...
|
| |
| const Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > & | getRangeMap () const |
| | Returns the Tpetra::Map object associated with the range of this operator. More...
|
| |
| void | applyMat (const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &X, Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Y, Teuchos::ETransp mode=Teuchos::NO_TRANS) const |
| | Applies the matrix to a Tpetra::MultiVector. More...
|
| |
|
| template<class DomainScalar , class RangeScalar > |
| void | applyTempl (const Tpetra::MultiVector< DomainScalar, LocalOrdinal, GlobalOrdinal, Node > &X, Tpetra::MultiVector< RangeScalar, LocalOrdinal, GlobalOrdinal, Node > &Y, Teuchos::ETransp mode=Teuchos::NO_TRANS, RangeScalar alpha=Teuchos::ScalarTraits< Scalar >::one(), RangeScalar beta=Teuchos::ScalarTraits< Scalar >::zero()) const |
| | Applies the preconditioner to X, returns the result in Y. More...
|
| |
| magnitudeType | computeCondEst (CondestType CT=Cheap, LocalOrdinal MaxIters=1550, magnitudeType Tol=1e-9, const Teuchos::Ptr< const Tpetra::RowMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &matrix=Teuchos::null) |
| | Computes the estimated condition number and returns the value. More...
|
| |
|
| magnitudeType | getCondEst () const |
| | Returns the computed estimated condition number, or -1.0 if no computed. More...
|
| |
| 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, LocalOrdinal, GlobalOrdinal, Node > > | getMatrix () const |
| | Returns a reference to the matrix to be preconditioned. More...
|
| |
| double | getComputeFlops () const |
| | Returns the number of flops in the computation phase. More...
|
| |
| double | getApplyFlops () const |
| | Returns the number of flops for the application of the preconditioner. 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...
|
| |
|
| 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...
|
| |
| virtual | ~Preconditioner () |
| | Destructor. More...
|
| |
| virtual magnitudeType | computeCondEst (CondestType CT=Ifpack2::Cheap, MatrixType::local_ordinal_type MaxIters=1550, magnitudeType Tol=1e-9, const Teuchos::Ptr< const Tpetra::RowMatrix< MatrixType::scalar_type, MatrixType::local_ordinal_type, MatrixType::global_ordinal_type, MatrixType::node_type > > &Matrix=Teuchos::null)=0 |
| | Computes the condition number estimate and returns its value. More...
|
| |
template<class MatrixType>
class Ifpack2::Diagonal< MatrixType >
A class for diagonal preconditioning.
Ifpack2::Diagonal wraps a vector as a diagonal preconditioner. The preconditioner is simply defined by
\[ z_i = D_i r_i, \]
where \(r,z\) are the vector to be preconditioned and the preconditioned vector, and \(D_i\) is the i-th element of the scaling vector.
When Ifpack2::Diagonal is constructed with a matrix, \(D\) contains the inverted diagonal elements from the matrix.
When Ifpack2::Diagonal is constructed with a vector, \(D\) is the caller-supplied vector.
- Author
- Michael Heroux, ETHZ/D-INFK
- Date
- Ifpack2 conversion (from Ifpack code) 31-Mar-2010