ROL
Loading...
Searching...
No Matches
ROL_ZeroProjection.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_ZEROPROJECTION_H
11#define ROL_ZEROPROJECTION_H
12
14#include <iostream>
15
16namespace ROL {
17
18template<typename Real>
20public:
21
23
24 virtual void project(Vector<Real> &x, std::ostream &stream = std::cout) override {
25 x.zero();
26 }
27
28 virtual void applyJacobian(Vector<Real> &v, const Vector<Real> &x) override {
29 v.zero();
30 }
31
32}; // class PolyhedralProjection_Zero
33} // namespace ROL
34
35#endif
Defines the linear algebra or vector space interface.
virtual void zero()
Set to zero vector.
virtual void applyJacobian(Vector< Real > &v, const Vector< Real > &x) override
virtual void project(Vector< Real > &x, std::ostream &stream=std::cout) override