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