10 #ifndef ROL_RISKLESSOBJECTIVE_DEF_HPP
11 #define ROL_RISKLESSOBJECTIVE_DEF_HPP
15 template<
typename Real>
18 template<
typename Real>
20 Ptr<const Vector<Real>> x0
22 obj_->update(*x0,type,iter);
25 template<
typename Real>
27 Ptr<const Vector<Real>> x0
29 obj_->update(*x0,flag,iter);
32 template<
typename Real>
34 Ptr<const Vector<Real>> x0
36 return obj_->value(*x0,tol);
39 template<
typename Real>
43 Ptr<const Vector<Real>> x0
45 obj_->gradient(*g0,*x0,tol);
48 template<
typename Real>
53 Ptr<const Vector<Real>> v0
55 Ptr<const Vector<Real>> x0
57 obj_->hessVec(*hv0,*v0,*x0,tol);
60 template<
typename Real>
65 Ptr<const Vector<Real>> v0
67 Ptr<const Vector<Real>> x0
69 obj_->precond(*Pv0,*v0,*x0,tol);
72 template<
typename Real>
75 obj_->setParameter(param);
Provides the interface to evaluate objective functions.
void setParameter(const std::vector< Real > ¶m) override
void precond(Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply preconditioner to vector.
Defines the linear algebra or vector space interface.
RiskLessObjective(const Ptr< Objective< Real >> &obj)
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Apply Hessian approximation to vector.
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Update objective function.
Real value(const Vector< Real > &x, Real &tol) override
Compute value.
virtual void setParameter(const std::vector< Real > ¶m)
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Compute gradient.