ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
function
nlls
ROL_Objective_FSsolver_Def.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_OBJECTIVE_FSSOLVER_DEF_H
11
#define ROL_OBJECTIVE_FSSOLVER_DEF_H
12
13
namespace
ROL
{
14
15
template
<
typename
Real>
16
Real
Objective_FSsolver<Real>::value
(
const
Vector<Real>
&u, Real &tol ) {
17
return
static_cast<
Real
>
(0.5)*u.
dot
(u);
18
}
19
20
template
<
typename
Real>
21
void
Objective_FSsolver<Real>::gradient
(
Vector<Real>
&g,
const
Vector<Real>
&u, Real &tol ) {
22
g.
set
(u.
dual
());
23
}
24
25
template
<
typename
Real>
26
void
Objective_FSsolver<Real>::hessVec
(
Vector<Real>
&hv,
const
Vector<Real>
&v,
const
Vector<Real>
&u, Real &tol ) {
27
hv.
set
(v.
dual
());
28
}
29
30
}
// namespace ROL
31
32
#endif
ROL::Objective_FSsolver::value
Real value(const Vector< Real > &u, Real &tol) override
ROL::Objective_FSsolver::hessVec
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, Real &tol) override
ROL::Objective_FSsolver::gradient
void gradient(Vector< Real > &g, const Vector< Real > &u, Real &tol) override
ROL::ROL::Vector
Definition
ROL_Constraint_SerialSimOpt.hpp:51
ROL::ROL::Vector::set
virtual void set(const Vector &x)
Set where .
Definition
ROL_Constraint_SerialSimOpt.hpp:176
ROL::ROL::Vector::dot
virtual Real dot(const Vector &x) const =0
Compute where .
ROL::ROL::Vector::dual
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis,...
Definition
ROL_Constraint_SerialSimOpt.hpp:193
ROL
Definition
ROL_ElementwiseVector.hpp:27
Generated by
1.17.0