10 #ifndef ROL_SHIFTEDPROXOBJECTIVE_HPP
11 #define ROL_SHIFTEDPROXOBJECTIVE_HPP
17 template<
typename Real>
20 const Ptr<ProxObjective<Real>>
prox_;
44 x.
axpy(static_cast<Real>(-1),*
x_);
virtual void plus(const Vector &x)=0
Compute , where .
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
ShiftedProxObjective(const Ptr< ProxObjective< Real >> &prox, const Ptr< Vector< Real >> &x)
Defines the linear algebra or vector space interface.
const Ptr< Vector< Real > > xtmp_
Real value(const Vector< Real > x, Real &tol) override
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Compute gradient.
const Ptr< Vector< Real > > x_
const Ptr< ProxObjective< Real > > prox_
void prox(Vector< Real > &x, Real gamma) override
void setX(const Vector< Real > &x)