Thyra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
interfaces
operator_vector
extended
Thyra_AddedLinearOpBase.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_ADDED_LINEAR_OP_BASE_HPP
11
#define THYRA_ADDED_LINEAR_OP_BASE_HPP
12
13
#include "Thyra_LinearOpBase.hpp"
14
15
namespace
Thyra {
16
40
template
<
class
Scalar>
41
class
AddedLinearOpBase
:
virtual
public
LinearOpBase
<Scalar> {
42
public
:
43
46
52
virtual
int
numOps
()
const
= 0;
53
62
virtual
bool
opIsConst
(
const
int
k)
const
= 0;
63
73
virtual
Teuchos::RCP<LinearOpBase<Scalar>
>
getNonconstOp
(
const
int
k) = 0;
74
83
virtual
Teuchos::RCP<const LinearOpBase<Scalar>
>
getOp
(
const
int
k)
const
= 0;
84
86
87
};
88
89
}
// namespace Thyra
90
91
#endif
// THYRA_ADDED_LINEAR_OP_BASE_HPP
Teuchos::RCP
Thyra::AddedLinearOpBase
Interface class for implicitly added linear operators.
Definition
Thyra_AddedLinearOpBase.hpp:41
Thyra::AddedLinearOpBase::getOp
virtual Teuchos::RCP< const LinearOpBase< Scalar > > getOp(const int k) const =0
Return the kth constant constituent operator.
Thyra::AddedLinearOpBase::getNonconstOp
virtual Teuchos::RCP< LinearOpBase< Scalar > > getNonconstOp(const int k)=0
Return the kth non-constant constituent operator.
Thyra::AddedLinearOpBase::opIsConst
virtual bool opIsConst(const int k) const =0
Determine if the kth constituent operator is const-only or not.
Thyra::AddedLinearOpBase::numOps
virtual int numOps() const =0
Returns the number of constituent operators.
Thyra::LinearOpBase
Base class for all linear operators.
Definition
Thyra_LinearOpBase_decl.hpp:159
Generated by
1.17.0