Thyra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
interfaces
operator_vector
extended
Thyra_ScaledAdjointLinearOpBase_decl.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_SCALED_ADJOINT_LINEAR_OP_BASE_DECL_HPP
11
#define THYRA_SCALED_ADJOINT_LINEAR_OP_BASE_DECL_HPP
12
13
#include "Thyra_LinearOpBase.hpp"
14
15
16
namespace
Thyra {
17
18
40
template
<
class
Scalar>
41
class
ScaledAdjointLinearOpBase
:
virtual
public
LinearOpBase
<Scalar> {
42
public
:
43
44
#ifdef THYRA_INJECT_USING_DECLARATIONS
45
using
LinearOpBase
<Scalar>
::apply
;
46
#endif
47
50
53
virtual
Scalar
overallScalar
()
const
= 0;
54
57
virtual
EOpTransp
overallTransp
()
const
= 0;
58
64
virtual
RCP<LinearOpBase<Scalar>
>
getNonconstOrigOp
() = 0;
65
68
virtual
RCP<const LinearOpBase<Scalar>
>
getOrigOp
()
const
= 0;
69
71
72
};
73
74
109
template
<
class
Scalar>
110
void
unwrap
(
111
const
LinearOpBase<Scalar>
&Op,
112
Scalar *scalar,
113
EOpTransp *transp,
114
const
LinearOpBase<Scalar>
* *origOp
115
);
116
117
153
template
<
class
Scalar>
154
void
unwrap
(
155
const
RCP
<
const
LinearOpBase<Scalar>
> &Op,
156
Scalar *scalar,
157
EOpTransp *transp,
158
RCP
<
const
LinearOpBase<Scalar>
> *origOp
159
);
160
161
162
}
// namespace Thyra
163
164
165
#endif
// THYRA_SCALED_ADJOINT_LINEAR_OP_BASE_DECL_HPP
Teuchos::RCP
Thyra::LinearOpBase
Base class for all linear operators.
Definition
Thyra_LinearOpBase_decl.hpp:159
Thyra::LinearOpBase::apply
void apply(const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha, const Scalar beta) const
Apply the linear operator to a multi-vector : Y = alpha*op(M)*X + beta*Y.
Definition
Thyra_LinearOpBase_decl.hpp:260
Thyra::ScaledAdjointLinearOpBase
Base class for LinearOpBase decorator subclasses that wrap a LinearOpBase object and adds on an extra...
Definition
Thyra_ScaledAdjointLinearOpBase_decl.hpp:41
Thyra::ScaledAdjointLinearOpBase::overallScalar
virtual Scalar overallScalar() const =0
Return the overall scale factor.
Thyra::ScaledAdjointLinearOpBase::getOrigOp
virtual RCP< const LinearOpBase< Scalar > > getOrigOp() const =0
Return the const original linear operator origOp.
Thyra::ScaledAdjointLinearOpBase::getNonconstOrigOp
virtual RCP< LinearOpBase< Scalar > > getNonconstOrigOp()=0
Return the non-const original linear operator origOp.
Thyra::ScaledAdjointLinearOpBase::overallTransp
virtual EOpTransp overallTransp() const =0
Return the overall transpose (adjoint) enum.
Thyra::unwrap
void unwrap(const LinearOpBase< Scalar > &Op, Scalar *scalar, EOpTransp *transp, const LinearOpBase< Scalar > **origOp)
Extract the overallScalar, overallTransp and const origOp from a const LinearOpBase object.
Definition
Thyra_ScaledAdjointLinearOpBase_def.hpp:18
Generated by
1.17.0