Ifpack2 Templated Preconditioning Package  Version 1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Ifpack2_BorderedOperator_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 //-----------------------------------------------------
11 // Ifpack2::BorderedOperator is a translation of the
12 // LOCA_BorderedSolver_EpetraHouseholder
13 // implementation written by Eric Phipps.
14 // DMD.
15 //------------------------------------------------------
16 
17 
18 #ifndef IFPACK2_BORDEREDOPERATOR_DECL_HPP
19 #define IFPACK2_BORDEREDOPERATOR_DECL_HPP
20 
21 #include "Ifpack2_ConfigDefs.hpp"
22 #include "Tpetra_Operator.hpp"
24 #include "Teuchos_ScalarTraits.hpp"
25 #include <iostream>
26 
27 namespace Ifpack2 {
29 
51 template<class Scalar,
52  class LocalOrdinal = typename Tpetra::Operator<Scalar>::local_ordinal_type,
53  class GlobalOrdinal = typename Tpetra::Operator<Scalar, LocalOrdinal>::global_ordinal_type,
54  class Node = typename Tpetra::Operator<Scalar, LocalOrdinal, GlobalOrdinal>::node_type>
56  virtual public Tpetra::Operator<Scalar, LocalOrdinal, GlobalOrdinal, Node > {
57 public:
59  BorderedOperator (const Teuchos::RCP<const Tpetra::Operator<Scalar, LocalOrdinal, GlobalOrdinal, Node> >& A);
60 
62  virtual ~BorderedOperator() {}
63 
65 
66 
69 
72 
74  bool hasTransposeApply() const;
75 
77  void
78  apply (const Tpetra::MultiVector<Scalar,LocalOrdinal,GlobalOrdinal,Node> &X,
79  Tpetra::MultiVector<Scalar,LocalOrdinal,GlobalOrdinal,Node> &Y,
81  Scalar alpha = Teuchos::ScalarTraits<Scalar>::one(),
82  Scalar beta = Teuchos::ScalarTraits<Scalar>::zero()) const;
84 
85 private:
88 };
89 
90 }//namespace Ifpack2
91 
92 #endif // IFPACK2_BORDEREDOPERATOR_DECL_HPP
virtual Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap() const
The range Map of this operator. It must be compatible with Y.getMap().
Definition: Ifpack2_BorderedOperator_def.hpp:40
void apply(const Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &X, Tpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Y, Teuchos::ETransp mode=Teuchos::NO_TRANS, Scalar alpha=Teuchos::ScalarTraits< Scalar >::one(), Scalar beta=Teuchos::ScalarTraits< Scalar >::zero()) const
Apply the bordered operator.
Definition: Ifpack2_BorderedOperator_def.hpp:55
virtual Teuchos::RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap() const
The domain Map of this operator. It must be compatible with X.getMap().
Definition: Ifpack2_BorderedOperator_def.hpp:33
Ifpack2 bordered operator.
Definition: Ifpack2_BorderedOperator_decl.hpp:55
bool hasTransposeApply() const
Whether this operator can apply the transpose or conjugate transpose.
Definition: Ifpack2_BorderedOperator_def.hpp:47
BorderedOperator(const Teuchos::RCP< const Tpetra::Operator< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &A)
Constructor with Tpetra::Operator input.
Definition: Ifpack2_BorderedOperator_def.hpp:22
virtual ~BorderedOperator()
Destructor.
Definition: Ifpack2_BorderedOperator_decl.hpp:62