Thyra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
support
operator_vector
client_support
Thyra_LinearOpDefaultBase_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_DEFAULT_BASE_HPP
11
#define THYRA_LINEAR_OP_DEFAULT_BASE_HPP
12
13
#include "Thyra_LinearOpDefaultBase_decl.hpp"
14
#include "Thyra_LinearOpBase.hpp"
15
#include "Thyra_VectorSpaceBase.hpp"
16
#include "Thyra_describeLinearOp.hpp"
17
18
namespace
Thyra {
19
20
21
// Overridden from Teuchos::Describable
22
23
24
template
<
class
Scalar>
25
std::string
LinearOpDefaultBase<Scalar>::description
()
const
26
{
27
std::ostringstream oss;
28
const
Teuchos::RCP<const VectorSpaceBase<Scalar>
>
29
l_range = this->
range
();
30
const
Teuchos::RCP<const VectorSpaceBase<Scalar>
>
31
l_domain = this->
domain
();
32
oss <<
Teuchos::Describable::description
();
33
if
(!l_range.
get
()) {
34
oss <<
"{range=NULL,domain=NULL}"
;
35
}
36
else
{
37
const
Ordinal dimDomain = l_domain->dim(), dimRange = l_range->dim();
38
oss
39
<<
"{rangeDim="
<< dimRange
40
<<
",domainDim="
<< dimDomain <<
"}"
;
41
}
42
return
oss.str();
43
}
44
45
46
template
<
class
Scalar>
47
void
LinearOpDefaultBase<Scalar>::describe
(
48
Teuchos::FancyOStream
&out,
49
const
Teuchos::EVerbosityLevel
verbLevel
50
)
const
51
{
52
describeLinearOp(*
this
, out, verbLevel);
53
}
54
55
56
}
// end namespace Thyra
57
58
#endif
// THYRA_LINEAR_OP_DEFAULT_BASE_HPP
Teuchos::Describable::description
virtual std::string description() const
Teuchos::RCP
Teuchos::RCP::get
T * get() const
Thyra::LinearOpBase::range
virtual RCP< const VectorSpaceBase< Scalar > > range() const =0
Return a smart pointer for the range space for this operator.
Thyra::LinearOpBase::domain
virtual RCP< const VectorSpaceBase< Scalar > > domain() const =0
Return a smart pointer for the domain space for this operator.
Thyra::LinearOpDefaultBase::describe
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
Generates a default outputting for all linear operators.
Definition
Thyra_LinearOpDefaultBase_def.hpp:47
Thyra::LinearOpDefaultBase::description
std::string description() const
Default description that gives the label, type, and dimenstion .
Definition
Thyra_LinearOpDefaultBase_def.hpp:25
Teuchos::FancyOStream
basic_FancyOStream< char > FancyOStream
Teuchos::EVerbosityLevel
EVerbosityLevel
Generated by
1.17.0