Teko
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Teko_BlockImplicitLinearOp.hpp
1
// @HEADER
2
// *****************************************************************************
3
// Teko: A package for block and physics based preconditioning
4
//
5
// Copyright 2010 NTESS and the Teko contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef __Teko_BlockImplicitLinearOp_hpp__
11
#define __Teko_BlockImplicitLinearOp_hpp__
12
13
#include "
Teko_Utilities.hpp
"
14
15
namespace
Teko {
16
24
class
BlockImplicitLinearOp
:
public
Thyra::LinearOpBase<double> {
25
public
:
27
virtual
VectorSpace
range
()
const
= 0;
28
30
virtual
VectorSpace
domain
()
const
= 0;
31
45
virtual
void
implicitApply
(
const
BlockedMultiVector& x, BlockedMultiVector& y,
46
const
double
alpha = 1.0,
const
double
beta = 0.0)
const
= 0;
47
61
virtual
void
implicitApply
(
const
Thyra::EOpTransp M_trans,
const
BlockedMultiVector& x,
62
BlockedMultiVector& y,
const
double
alpha = 1.0,
63
const
double
beta = 0.0)
const
;
64
65
protected
:
67
68
69
virtual
bool
opSupportedImpl
(
const
Thyra::EOpTransp M_trans)
const
;
70
71
virtual
void
applyImpl(
const
Thyra::EOpTransp M_trans,
const
Thyra::MultiVectorBase<double>& x,
72
const
Teuchos::Ptr<Thyra::MultiVectorBase<double> >& y,
const
double
alpha,
73
const
double
beta)
const
;
74
76
};
77
78
}
// end namespace Teko
79
80
#endif
Teko_Utilities.hpp
Teko::BlockImplicitLinearOp
A virtual class that simplifies the construction of custom operators.
Definition
Teko_BlockImplicitLinearOp.hpp:24
Teko::BlockImplicitLinearOp::range
virtual VectorSpace range() const =0
Range space of this operator.
Teko::BlockImplicitLinearOp::implicitApply
virtual void implicitApply(const BlockedMultiVector &x, BlockedMultiVector &y, const double alpha=1.0, const double beta=0.0) const =0
Perform a matrix vector multiply with this implicitly defined blocked operator.
Teko::BlockImplicitLinearOp::domain
virtual VectorSpace domain() const =0
Domain space of this operator.
Teko::BlockImplicitLinearOp::opSupportedImpl
virtual bool opSupportedImpl(const Thyra::EOpTransp M_trans) const
Functions required by Thyra::LinearOpBase.
Definition
Teko_BlockImplicitLinearOp.cpp:32
Generated by
1.17.0