|
Ifpack2 Templated Preconditioning Package
Version 1.0
|
"Identity" preconditioner. More...
#include <Ifpack2_IdentitySolver_decl.hpp>

Public Types | |
| typedef MatrixType::scalar_type | scalar_type |
| Type of the entries of the input matrix. | |
| typedef MatrixType::local_ordinal_type | local_ordinal_type |
| Type of the local indices of the input matrix. | |
| typedef MatrixType::global_ordinal_type | global_ordinal_type |
| Type of the global indices of the input matrix. | |
| typedef MatrixType::node_type | node_type |
| Kokkos Node type of the input matrix. | |
| typedef Teuchos::ScalarTraits < scalar_type >::magnitudeType | magnitude_type |
Type of the absolute value (magnitude) of a scalar_type value. | |
| typedef Tpetra::Map < local_ordinal_type, global_ordinal_type, node_type > | map_type |
| Specialization of Tpetra::Map used by this class. | |
| typedef Tpetra::RowMatrix < scalar_type, local_ordinal_type, global_ordinal_type, node_type > | row_matrix_type |
| Specialization of Tpetra::RowMatrix used by this class. | |
Public Member Functions | |
| IdentitySolver (const Teuchos::RCP< const row_matrix_type > &A) | |
| Constructor: Takes the matrix to precondition. | |
| virtual | ~IdentitySolver () |
| Destructor. | |
| void | setParameters (const Teuchos::ParameterList ¶ms) |
| Set this object's parameters. | |
| void | initialize () |
| Initialize. | |
| bool | isInitialized () const |
Return true if the preconditioner has been successfully initialized. | |
| void | compute () |
| Compute the preconditioner. | |
| bool | isComputed () const |
| Return true if compute() has been called. | |
Implementation of 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 |
| Apply the preconditioner to X, and put the result in Y. | |
| Teuchos::RCP< const map_type > | getDomainMap () const |
| Return the Tpetra::Map object associated with the domain of this operator. | |
| Teuchos::RCP< const map_type > | getRangeMap () const |
| Return the Tpetra::Map object associated with the range of this operator. | |
| void | applyMat (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) const |
| Apply the original input matrix. | |
Mathematical functions. | |
| virtual magnitude_type TEUCHOS_DEPRECATED | 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=Teuchos::null) |
| Compute the condition number estimate and return its value. | |
Attribute accessor methods | |
| virtual magnitude_type TEUCHOS_DEPRECATED | getCondEst () const |
| Return the computed condition number estimate, or -1 if not computed. | |
| Teuchos::RCP< const Teuchos::Comm< int > > | getComm () const |
| Return the communicator associated with this matrix operator. | |
| Teuchos::RCP< const row_matrix_type > | getMatrix () const |
| Return a reference to the matrix to be preconditioned. | |
| double | getComputeFlops () const |
| Return the number of flops in the computation phase. | |
| double | getApplyFlops () const |
| Return the number of flops for the application of the preconditioner. | |
| int | getNumInitialize () const |
| Return the number of calls to initialize(). | |
| int | getNumCompute () const |
| Return the number of calls to compute(). | |
| int | getNumApply () const |
| Return the number of calls to apply(). | |
| double | getInitializeTime () const |
| Return the time spent in initialize(). | |
| double | getComputeTime () const |
| Return the time spent in compute(). | |
| double | getApplyTime () const |
| Return the time spent in apply(). | |
Implementation of Teuchos::Describable | |
| std::string | description () const |
| Return a simple one-line description of this object. | |
| 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. | |
| virtual void | setMatrix (const Teuchos::RCP< const row_matrix_type > &A) |
| Set this preconditioner's matrix. | |
"Identity" preconditioner.
| MatrixType | Specialization of Tpetra::RowMatrix. |
This class is mainly useful for testing. It implements the identity operator; its apply() method just copies the input to the output.
| typedef MatrixType::scalar_type Ifpack2::IdentitySolver< MatrixType >::scalar_type |
Type of the entries of the input matrix.
| typedef MatrixType::local_ordinal_type Ifpack2::IdentitySolver< MatrixType >::local_ordinal_type |
Type of the local indices of the input matrix.
| typedef MatrixType::global_ordinal_type Ifpack2::IdentitySolver< MatrixType >::global_ordinal_type |
Type of the global indices of the input matrix.
| typedef MatrixType::node_type Ifpack2::IdentitySolver< MatrixType >::node_type |
Kokkos Node type of the input matrix.
| typedef Teuchos::ScalarTraits<scalar_type>::magnitudeType Ifpack2::IdentitySolver< MatrixType >::magnitude_type |
Type of the absolute value (magnitude) of a scalar_type value.
Reimplemented from Ifpack2::Preconditioner< MatrixType::scalar_type, MatrixType::local_ordinal_type, MatrixType::global_ordinal_type, MatrixType::node_type >.
| typedef Tpetra::Map<local_ordinal_type, global_ordinal_type, node_type> Ifpack2::IdentitySolver< MatrixType >::map_type |
Specialization of Tpetra::Map used by this class.
| typedef Tpetra::RowMatrix<scalar_type, local_ordinal_type, global_ordinal_type, node_type> Ifpack2::IdentitySolver< MatrixType >::row_matrix_type |
Specialization of Tpetra::RowMatrix used by this class.
| Ifpack2::IdentitySolver< MatrixType >::IdentitySolver | ( | const Teuchos::RCP< const row_matrix_type > & | A | ) |
Constructor: Takes the matrix to precondition.
| Ifpack2::IdentitySolver< MatrixType >::~IdentitySolver | ( | ) | [virtual] |
Destructor.
| void Ifpack2::IdentitySolver< MatrixType >::setParameters | ( | const Teuchos::ParameterList & | params | ) | [virtual] |
Set this object's parameters.
This object does not currently take any parameters.
| void Ifpack2::IdentitySolver< MatrixType >::initialize | ( | ) | [virtual] |
| bool Ifpack2::IdentitySolver< MatrixType >::isInitialized | ( | ) | const [inline, virtual] |
Return true if the preconditioner has been successfully initialized.
| void Ifpack2::IdentitySolver< MatrixType >::compute | ( | ) | [virtual] |
Compute the preconditioner.
| bool Ifpack2::IdentitySolver< MatrixType >::isComputed | ( | ) | const [inline, virtual] |
Return true if compute() has been called.
| void Ifpack2::IdentitySolver< MatrixType >::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 [virtual] |
Apply the preconditioner to X, and put the result in Y.
| X | [in] MultiVector to which to apply the preconditioner. |
| Y | [in/out] On input: Initial guess, if applicable. On poutput: Result of applying the preconditioner. |
| Teuchos::RCP< const typename IdentitySolver< MatrixType >::map_type > Ifpack2::IdentitySolver< MatrixType >::getDomainMap | ( | ) | const [virtual] |
Return the Tpetra::Map object associated with the domain of this operator.
| Teuchos::RCP< const typename IdentitySolver< MatrixType >::map_type > Ifpack2::IdentitySolver< MatrixType >::getRangeMap | ( | ) | const [virtual] |
Return the Tpetra::Map object associated with the range of this operator.
| void Ifpack2::IdentitySolver< MatrixType >::applyMat | ( | 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 |
||
| ) | const |
Apply the original input matrix.
| X | [in] MultiVector input. |
| Y | [in/out] Result of applying the matrix A to X. |
| IdentitySolver< MatrixType >::magnitude_type Ifpack2::IdentitySolver< MatrixType >::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 = Teuchos::null |
||
| ) | [virtual] |
Compute the condition number estimate and return its value.
| virtual magnitude_type TEUCHOS_DEPRECATED Ifpack2::IdentitySolver< MatrixType >::getCondEst | ( | ) | const [inline, virtual] |
Return the computed condition number estimate, or -1 if not computed.
| Teuchos::RCP<const Teuchos::Comm<int> > Ifpack2::IdentitySolver< MatrixType >::getComm | ( | ) | const |
Return the communicator associated with this matrix operator.
| Teuchos::RCP<const row_matrix_type> Ifpack2::IdentitySolver< MatrixType >::getMatrix | ( | ) | const [inline, virtual] |
Return a reference to the matrix to be preconditioned.
| double Ifpack2::IdentitySolver< MatrixType >::getComputeFlops | ( | ) | const |
Return the number of flops in the computation phase.
| double Ifpack2::IdentitySolver< MatrixType >::getApplyFlops | ( | ) | const |
Return the number of flops for the application of the preconditioner.
| int Ifpack2::IdentitySolver< MatrixType >::getNumInitialize | ( | ) | const [virtual] |
Return the number of calls to initialize().
| int Ifpack2::IdentitySolver< MatrixType >::getNumCompute | ( | ) | const [virtual] |
Return the number of calls to compute().
| int Ifpack2::IdentitySolver< MatrixType >::getNumApply | ( | ) | const [virtual] |
Return the number of calls to apply().
| double Ifpack2::IdentitySolver< MatrixType >::getInitializeTime | ( | ) | const [virtual] |
Return the time spent in initialize().
| double Ifpack2::IdentitySolver< MatrixType >::getComputeTime | ( | ) | const [virtual] |
Return the time spent in compute().
| double Ifpack2::IdentitySolver< MatrixType >::getApplyTime | ( | ) | const [virtual] |
Return the time spent in apply().
| std::string Ifpack2::IdentitySolver< MatrixType >::description | ( | ) | const |
Return a simple one-line description of this object.
| void Ifpack2::IdentitySolver< MatrixType >::describe | ( | Teuchos::FancyOStream & | out, |
| const Teuchos::EVerbosityLevel | verbLevel = Teuchos::Describable::verbLevel_default |
||
| ) | const |
Print the object with some verbosity level to an FancyOStream object.
| void Ifpack2::IdentitySolver< MatrixType >::setMatrix | ( | const Teuchos::RCP< const row_matrix_type > & | A | ) | [virtual] |
Set this preconditioner's matrix.
After calling this method, you must call first initialize(), then compute(), before you may call apply().
1.7.6.1