ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
function
dynamic
ROL_DynamicFunctionDef.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
#pragma once
11
#ifndef ROL_DYNAMICFUNCTIONDEF_HPP
12
#define ROL_DYNAMICFUNCTIONDEF_HPP
13
14
15
namespace
ROL
{
16
17
template
<
typename
Real>
18
VectorWorkspace<Real>
&
19
DynamicFunction<Real>::getVectorWorkspace
()
const
{
return
workspace_
; }
20
21
template
<
typename
Real>
22
PartitionedVector<Real>
&
23
DynamicFunction<Real>::partition
(
Vector<Real>
& x )
const
{
24
return
static_cast<
PartitionedVector<Real>
&
>
(x);
25
}
26
27
template
<
typename
Real>
28
const
PartitionedVector<Real>
&
29
DynamicFunction<Real>::partition
(
const
Vector<Real>
& x )
const
{
30
return
static_cast<
const
PartitionedVector<Real>
&
>
(x);
31
}
32
33
template
<
typename
Real>
34
Vector<Real>
&
35
DynamicFunction<Real>::getNew
(
Vector<Real>
& x )
const
{
36
return
*(
partition
(x).get(1));
37
}
38
39
template
<
typename
Real>
40
const
Vector<Real>
&
41
DynamicFunction<Real>::getNew
(
const
Vector<Real>
& x )
const
{
42
return
*(
partition
(x).get(1));
43
}
44
45
template
<
typename
Real>
46
Vector<Real>
&
47
DynamicFunction<Real>::getOld
(
Vector<Real>
& x )
const
{
48
return
*(
partition
(x).get(0));
49
}
50
51
template
<
typename
Real>
52
const
Vector<Real>
&
53
DynamicFunction<Real>::getOld
(
const
Vector<Real>
& x )
const
{
54
return
*(
partition
(x).get(0));
55
}
56
57
}
// namespace ROL
58
59
60
#endif
// ROL_DYNAMICFUNCTIONDEF_HPP
61
ROL::DynamicFunction::getOld
V & getOld(V &x) const
Definition
ROL_DynamicFunctionDef.hpp:47
ROL::DynamicFunction::getVectorWorkspace
VectorWorkspace< Real > & getVectorWorkspace() const
Definition
ROL_DynamicFunctionDef.hpp:19
ROL::DynamicFunction::workspace_
VectorWorkspace< Real > workspace_
Definition
ROL_DynamicFunction.hpp:88
ROL::DynamicFunction::partition
PV & partition(V &x) const
Definition
ROL_DynamicFunctionDef.hpp:23
ROL::DynamicFunction::getNew
V & getNew(V &x) const
Definition
ROL_DynamicFunctionDef.hpp:35
ROL::PartitionedVector
Defines the linear algebra of vector space on a generic partitioned vector.
Definition
ROL_PartitionedVector.hpp:26
VectorWorkspace
Provides a "smart" cloning manager to be used a member variable in a class and called in the member f...
ROL::Vector
Defines the linear algebra or vector space interface.
Definition
ROL_Vector.hpp:51
ROL
Definition
ROL_ElementwiseVector.hpp:27
ROL::partition
PartitionedVector< Real > & partition(Vector< Real > &x)
Definition
ROL_PartitionedVector.hpp:261
Generated by
1.17.0