Thyra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
interfaces
operator_solve
fundamental
Thyra_LinearOpWithSolveBase_def.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_WITH_SOLVE_BASE_DEF_HPP
11
#define THYRA_LINEAR_OP_WITH_SOLVE_BASE_DEF_HPP
12
13
#include "Thyra_LinearOpWithSolveBase_decl.hpp"
14
15
16
namespace
Thyra {
17
18
19
// Protected virtual functions to be overridden by subclasses
20
21
22
template
<
class
Scalar>
23
bool
24
LinearOpWithSolveBase<Scalar>::solveSupportsImpl
(
25
EOpTransp transp)
const
26
{
27
return
(transp ==
NOTRANS
);
28
}
29
30
31
template
<
class
Scalar>
32
bool
33
LinearOpWithSolveBase<Scalar>::solveSupportsSolveMeasureTypeImpl
(
34
EOpTransp transp,
const
SolveMeasureType
& solveMeasureType)
const
35
{
36
return
(
solveSupports
(transp) && solveMeasureType.
useDefault
());
37
}
38
39
40
// private:
41
42
43
}
// namespace Thyra
44
45
46
#endif
// THYRA_LINEAR_OP_WITH_SOLVE_BASE_DEF_HPP
Thyra::LinearOpWithSolveBase::solveSupports
bool solveSupports(EOpTransp transp) const
Return if solve() supports the argument transp.
Definition
Thyra_LinearOpWithSolveBase_decl.hpp:350
Thyra::LinearOpWithSolveBase::solveSupportsImpl
virtual bool solveSupportsImpl(EOpTransp transp) const
Virtual implementation for solveSupports().
Definition
Thyra_LinearOpWithSolveBase_def.hpp:24
Thyra::LinearOpWithSolveBase::solveSupportsSolveMeasureTypeImpl
virtual bool solveSupportsSolveMeasureTypeImpl(EOpTransp transp, const SolveMeasureType &solveMeasureType) const
Virtual implementation for solveSupportsSolveMeasureType().
Definition
Thyra_LinearOpWithSolveBase_def.hpp:33
Thyra::NOTRANS
NOTRANS
Type for the dimension of a vector space. `**/ typedef Teuchos::Ordinal Ordinal;.
Definition
Thyra_OperatorVectorTypes.hpp:130
Thyra::SolveMeasureType
Solve tolerance type.
Definition
Thyra_SolveSupportTypes.hpp:80
Thyra::SolveMeasureType::useDefault
bool useDefault() const
Return if this is a default solve measure (default constructed).
Definition
Thyra_SolveSupportTypes.hpp:99
Generated by
1.17.0