Thyra
Version of the Day
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
core
src
interfaces
nonlinear
model_evaluator
fundamental
Thyra_ModelEvaluatorBase.cpp
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
#include "Thyra_ModelEvaluatorBase_decl.hpp"
11
12
13
namespace
Thyra {
14
15
16
ModelEvaluatorBase::ModelEvaluatorBase
()
17
{}
18
19
20
std::string
21
ModelEvaluatorBase::DerivativeSupport::description
()
const
22
{
23
std::ostringstream oss;
24
oss <<
"DerivativeSupport{"
;
25
if
(
none
()) {
26
oss <<
"none"
;
27
}
28
else
{
29
bool
wroteOutput =
false
;
30
if
(supportsLinearOp_) {
31
oss <<
"DERIV_LINEAR_OP"
;
32
wroteOutput =
true
;
33
}
34
if
(supportsMVByCol_) {
35
oss << (wroteOutput?
","
:
""
) <<
toString
(
DERIV_MV_BY_COL
);
36
wroteOutput =
true
;
37
}
38
if
(supportsTransMVByRow_) {
39
oss << (wroteOutput?
","
:
""
) <<
toString
(
DERIV_TRANS_MV_BY_ROW
);
40
wroteOutput =
true
;
41
}
42
}
43
oss <<
"}"
;
44
return
oss.str();
45
}
46
47
48
}
// namespace Thyra
49
50
51
#ifdef HAVE_THYRA_EXPLICIT_INSTANTIATION
52
53
54
#include "Thyra_ModelEvaluatorBase_def.hpp"
55
#include "Teuchos_ExplicitInstantiationHelpers.hpp"
56
57
namespace
Thyra {
58
59
TEUCHOS_MACRO_TEMPLATE_INSTANT_SCALAR_TYPES
(THYRA_MODEL_EVALUATOR_BASE_INSTANT)
60
61
}
// namespace Thyra
62
63
#endif // HAVE_THYRA_EXPLICIT_INSTANTIATION
TEUCHOS_MACRO_TEMPLATE_INSTANT_SCALAR_TYPES
#define TEUCHOS_MACRO_TEMPLATE_INSTANT_SCALAR_TYPES(MACRONAME)
Thyra::ModelEvaluatorBase::toString
std::string toString(ModelEvaluatorBase::EInArgsMembers)
Thyra::ModelEvaluatorBase::DerivativeSupport::none
bool none() const
Definition:
Thyra_ModelEvaluatorBase_decl.hpp:392
Thyra::ModelEvaluatorBase::DERIV_TRANS_MV_BY_ROW
Deprecated!
Definition:
Thyra_ModelEvaluatorBase_decl.hpp:353
Thyra::ModelEvaluatorBase::DERIV_MV_BY_COL
Deprecated!
Definition:
Thyra_ModelEvaluatorBase_decl.hpp:352
Thyra::ModelEvaluatorBase::ModelEvaluatorBase
ModelEvaluatorBase()
constructor
Definition:
Thyra_ModelEvaluatorBase.cpp:16
Thyra::ModelEvaluatorBase::DerivativeSupport::description
std::string description() const
Definition:
Thyra_ModelEvaluatorBase.cpp:21
Generated on Thu Nov 21 2024 09:20:52 for Thyra by
1.8.5