10#ifndef IFPACK2_DETAILS_ONELEVELFACTORY_DECL_HPP
11#define IFPACK2_DETAILS_ONELEVELFACTORY_DECL_HPP
13#include "Ifpack2_ConfigDefs.hpp"
15#include "Tpetra_RowMatrix.hpp"
91template <
class MatrixType>
94 typedef typename MatrixType::scalar_type scalar_type;
95 typedef typename MatrixType::local_ordinal_type local_ordinal_type;
96 typedef typename MatrixType::global_ordinal_type global_ordinal_type;
97 typedef typename MatrixType::node_type node_type;
103 typedef ::Tpetra::RowMatrix<scalar_type,
109 static_assert(std::is_same<MatrixType, row_matrix_type>::value,
110 "Ifpack2::Details::OneLevelFactory: MatrixType must be a "
111 "Tpetra::RowMatrix specialization.");
123 Teuchos::RCP<prec_type>
125 const Teuchos::RCP<const row_matrix_type>&
matrix)
const;
127 std::vector<std::string>
128 getSupportedNames()
const;
131 isSupported(
const std::string&
precType)
const;
Ifpack2's implementation of Trilinos::Details::LinearSolver interface.
Definition Ifpack2_Details_LinearSolver_decl.hpp:75
"Factory" for creating single-level preconditioners.
Definition Ifpack2_Details_OneLevelFactory_decl.hpp:92
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:52
Interface for all Ifpack2 preconditioners.
Definition Ifpack2_Preconditioner.hpp:74
Ifpack2 implementation details.
Preconditioners and smoothers for Tpetra sparse matrices.
Definition Ifpack2_AdditiveSchwarz_decl.hpp:40