ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
function
prox
ROL_ZeroProxObjective.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_ZEROPROXOBJECTIVE_HPP
11
#define ROL_ZEROPROXOBJECTIVE_HPP
12
13
#include "
ROL_ProxObjective.hpp
"
14
15
namespace
ROL
{
16
17
template
<
typename
Real>
18
class
ZeroProxObjective
:
public
ProxObjective
<Real> {
19
public
:
20
21
Real
value
(
const
Vector<Real>
x, Real &tol)
override
{
22
return
static_cast<
Real
>
(0);
23
}
24
25
void
gradient
(
Vector<Real>
&g,
const
Vector<Real>
&x, Real &tol)
override
{
26
g.
zero
();
27
}
28
29
void
prox
(
Vector<Real>
&x, Real gamma)
override
{}
30
31
};
32
33
}
34
35
#endif
ROL_ProxObjective.hpp
ROL::ProxObjective
Definition
ROL_ProxObjective.hpp:18
ROL::Vector
Defines the linear algebra or vector space interface.
Definition
ROL_Vector.hpp:51
ROL::Vector::zero
virtual void zero()
Set to zero vector.
Definition
ROL_Vector.hpp:134
ROL::ZeroProxObjective
Definition
ROL_ZeroProxObjective.hpp:18
ROL::ZeroProxObjective::prox
void prox(Vector< Real > &x, Real gamma) override
Definition
ROL_ZeroProxObjective.hpp:29
ROL::ZeroProxObjective::gradient
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Definition
ROL_ZeroProxObjective.hpp:25
ROL::ZeroProxObjective::value
Real value(const Vector< Real > x, Real &tol) override
Definition
ROL_ZeroProxObjective.hpp:21
ROL
Definition
ROL_ElementwiseVector.hpp:27
Generated by
1.17.0