Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_SchurPreconditioner.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef STOKHOS_SCHURPRECONDITIONER_HPP
11 #define STOKHOS_SCHURPRECONDITIONER_HPP
12 
13 #include "Teuchos_RCP.hpp"
14 #include "Stokhos_Operator.hpp"
16 
17 namespace Stokhos {
18 
19  template <typename ordinal_type, typename value_type>
21  public Stokhos::Operator<ordinal_type, value_type> {
22  public:
23 
27  const ordinal_type p, const ordinal_type m, const ordinal_type diag);
28 
30  virtual ~SchurPreconditioner();
31 
32  virtual ordinal_type ApplyInverse(
35  ordinal_type prec_iters) const;
36 
37  protected:
40 
42  const ordinal_type p;
43  const ordinal_type m;
45 
46  }; // class SchurPreconditioner
47 
48 } // namespace Stokhos
49 
51 
52 #endif // STOKHOS_SCHURPRECONDITIONER_HPP
53 
const Teuchos::SerialDenseMatrix< ordinal_type, value_type > & K
virtual ordinal_type ApplyInverse(const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &Input, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &Result, ordinal_type prec_iters) const
Returns the result of a Operator inverse applied to a Teuchos::SerialDenseMatrix Input in Result...
SchurPreconditioner(const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &K, const ordinal_type p, const ordinal_type m, const ordinal_type diag)
Constructor.
ordinal_type fact(ordinal_type n) const
ordinal_type size(ordinal_type n, ordinal_type m) const
int n