Thyra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
interfaces
operator_solve
fundamental
Thyra_LinearOpSourceBase.hpp
1
// @HEADER
2
// *****************************************************************************
3
// Thyra: Interfaces and Support for Abstract Numerical Algorithms
4
//
5
// Copyright 2004 NTESS and the Thyra contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef THYRA_LINEAR_OP_SOURCE_BASE_HPP
11
#define THYRA_LINEAR_OP_SOURCE_BASE_HPP
12
13
#include "Thyra_SolveSupportTypes.hpp"
14
#include "Teuchos_Describable.hpp"
15
16
17
namespace
Thyra {
18
19
24
template
<
class
Scalar>
25
class
LinearOpSourceBase
:
virtual
public
Teuchos::Describable
26
{
27
public
:
28
31
34
virtual
bool
isOpConst
()
const
= 0;
35
42
virtual
Teuchos::RCP<LinearOpBase<Scalar>
>
getNonconstOp
() = 0;
43
47
virtual
Teuchos::RCP<const LinearOpBase<Scalar>
>
getOp
()
const
= 0;
48
50
51
};
52
53
}
// namespace Thyra
54
55
#endif
// THYRA_LINEAR_OP_SOURCE_BASE_HPP
Teuchos::Describable
Teuchos::RCP
Thyra::LinearOpSourceBase
Base interface for objects that can return a linear operator.
Definition
Thyra_LinearOpSourceBase.hpp:26
Thyra::LinearOpSourceBase::getOp
virtual Teuchos::RCP< const LinearOpBase< Scalar > > getOp() const =0
Return a const left preconditioner linear operator if one is designed or targeted to be applied on th...
Thyra::LinearOpSourceBase::getNonconstOp
virtual Teuchos::RCP< LinearOpBase< Scalar > > getNonconstOp()=0
Return a non-const reference to the underlying linear operator.
Thyra::LinearOpSourceBase::isOpConst
virtual bool isOpConst() const =0
Return if the underlying linear operator is const-only or not.
Generated by
1.17.0