ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
function
operator
ROL_IdentityOperator.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Rapid Optimization Library (ROL) Package
4
//
5
// Copyright 2014 NTESS and the ROL contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef ROL_IDENTITYOPERATOR_H
11
#define ROL_IDENTITYOPERATOR_H
12
13
#include "
ROL_LinearOperator.hpp
"
14
15
20
21
namespace
ROL
{
22
23
template
<
class
Real>
24
class
IdentityOperator
:
public
LinearOperator
<Real> {
25
26
void
apply
(
Vector<Real>
&Hv,
const
Vector<Real>
&v, Real &tol )
const
{
27
Hv.
set
(v);
28
}
29
30
void
applyInverse
(
Vector<Real>
&Hv,
const
Vector<Real>
&v, Real &tol )
const
{
31
Hv.
set
(v);
32
}
33
34
};
35
36
}
// namespace ROL
37
38
39
40
41
#endif
// ROL_NULLOPERATOR_H
42
ROL_LinearOperator.hpp
ROL::IdentityOperator
Multiplication by unity.
Definition
ROL_IdentityOperator.hpp:24
ROL::IdentityOperator::applyInverse
void applyInverse(Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const
Definition
ROL_IdentityOperator.hpp:30
ROL::IdentityOperator::apply
void apply(Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const
Definition
ROL_IdentityOperator.hpp:26
ROL::LinearOperator
Provides the interface to apply a linear operator.
Definition
ROL_LinearOperator.hpp:37
ROL::Vector
Defines the linear algebra or vector space interface.
Definition
ROL_Vector.hpp:51
ROL::Vector::set
virtual void set(const Vector &x)
Set where .
Definition
ROL_Vector.hpp:176
ROL
Definition
ROL_ElementwiseVector.hpp:27
Generated by
1.17.0