10 #ifndef ROL_OBJECTIVE_FSSOLVER_DEF_H
11 #define ROL_OBJECTIVE_FSSOLVER_DEF_H
15 template<
typename Real>
17 return static_cast<Real
>(0.5)*u.
dot(u);
20 template<
typename Real>
25 template<
typename Real>
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
Defines the linear algebra or vector space interface.
void gradient(Vector< Real > &g, const Vector< Real > &u, Real &tol) override
Compute gradient.
virtual Real dot(const Vector &x) const =0
Compute where .
Real value(const Vector< Real > &u, Real &tol) override
Compute value.
virtual void set(const Vector &x)
Set where .
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &u, Real &tol) override
Apply Hessian approximation to vector.