10#ifndef ROL_BALLINDICATOROBJECTIVE_H
11#define ROL_BALLINDICATOROBJECTIVE_H
25template<
typename Real>
37 const Real
zero(0), one(1);
39 Real norm =
pwa_->norm();
40 return (norm <=
rad_) ?
zero : ROL_INF<Real>();
45 Real norm =
pwa_->norm();
Objective_SerialSimOpt(const Ptr< Obj > &obj, const V &ui) z0_ zero()
Provides the interface to evaluate the indicator function of norm constraints.
const Ptr< Vector< Real > > x_
void prox(Vector< Real > &Pv, const Vector< Real > &v, Real t, Real &tol)
Compute the proximity operator.
Real value(const Vector< Real > &x, Real &tol)
Compute value.
BallIndicatorObjective(const Ptr< Vector< Real > > &x, Real rad)
const Ptr< Vector< Real > > pwa_
Provides the interface to evaluate objective functions.
Defines the linear algebra or vector space interface.
virtual void set(const Vector &x)
Set where .
virtual void axpy(const Real alpha, const Vector &x)
Compute where .