43#ifndef IFPACK2_DETAILS_ONELEVELFACTORY_DECL_HPP
44#define IFPACK2_DETAILS_ONELEVELFACTORY_DECL_HPP
46#include "Ifpack2_ConfigDefs.hpp"
48#include "Tpetra_RowMatrix.hpp"
123template<
class MatrixType>
126 typedef typename MatrixType::scalar_type scalar_type;
127 typedef typename MatrixType::local_ordinal_type local_ordinal_type;
128 typedef typename MatrixType::global_ordinal_type global_ordinal_type;
129 typedef typename MatrixType::node_type node_type;
134 typedef ::Tpetra::RowMatrix<scalar_type,
137 node_type> row_matrix_type;
139 static_assert (std::is_same<MatrixType, row_matrix_type>::value,
140 "Ifpack2::Details::OneLevelFactory: MatrixType must be a "
141 "Tpetra::RowMatrix specialization.");
153 Teuchos::RCP<prec_type>
154 create (
const std::string& precType,
155 const Teuchos::RCP<const row_matrix_type>& matrix)
const;
158 isSupported (
const std::string& precType)
const;
"Factory" for creating single-level preconditioners.
Definition: Ifpack2_Details_OneLevelFactory_decl.hpp:124
Teuchos::RCP< prec_type > create(const std::string &precType, const Teuchos::RCP< const row_matrix_type > &matrix) const
Create an instance of Preconditioner given the string name of the preconditioner type.
Definition: Ifpack2_Details_OneLevelFactory_def.hpp:84
Interface for all Ifpack2 preconditioners.
Definition: Ifpack2_Preconditioner.hpp:108
Ifpack2 implementation details.
Preconditioners and smoothers for Tpetra sparse matrices.
Definition: Ifpack2_AdditiveSchwarz_decl.hpp:74