Ifpack2 Templated Preconditioning Package Version 1.0
Loading...
Searching...
No Matches
Ifpack2_Details_Factory_decl.hpp
1// @HEADER
2// *****************************************************************************
3// Ifpack2: Templated Object-Oriented Algebraic Preconditioner Package
4//
5// Copyright 2009 NTESS and the Ifpack2 contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef IFPACK2_DETAILS_FACTORY_DECL_HPP
11#define IFPACK2_DETAILS_FACTORY_DECL_HPP
12
13#include "Ifpack2_ConfigDefs.hpp"
15
16namespace Ifpack2 {
17namespace Details {
18
19
20template<class SC, class LO, class GO, class NT>
21class Factory {
22public:
23 typedef Tpetra::RowMatrix<SC, LO, GO, NT> row_matrix_type;
24 typedef ::Ifpack2::Preconditioner<SC, LO, GO, NT> prec_type;
25
35 Teuchos::RCP<prec_type>
36 create (const std::string& precType,
37 const Teuchos::RCP<const row_matrix_type>& matrix);
38
54 Teuchos::RCP<prec_type>
55 create (const std::string& precType,
56 const Teuchos::RCP<const row_matrix_type>& matrix,
57 const int overlap);
58
59 bool
60 isSupported (const std::string& precType);
61};
62
63} // namespace Details
64} // namespace Ifpack2
65
66#endif // IFPACK2_DETAILS_FACTORY_DECL_HPP
Preconditioners and smoothers for Tpetra sparse matrices.
Definition Ifpack2_AdditiveSchwarz_decl.hpp:41