44 #ifndef ROL_QUADRATIC_OBJECTIVE_H 45 #define ROL_QUADRATIC_OBJECTIVE_H 49 #include "Teuchos_RCP.hpp" 72 const Teuchos::RCP<const LinearOperator<Real> >
op_;
73 const Teuchos::RCP<const Vector<Real> >
vec_;
74 Teuchos::RCP<Vector<Real> >
tmp_;
99 op_->applyInverse(hv,v,tol);
Provides the interface to evaluate objective functions.
Real value(const Vector< Real > &x, Real &tol)
Compute value.
void invHessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply inverse Hessian approximation to vector.
virtual void plus(const Vector &x)=0
Compute , where .
const Teuchos::RCP< const Vector< Real > > vec_
Teuchos::RCP< Vector< Real > > tmp_
Provides the interface to evaluate quadratic objective functions.
Defines the linear algebra or vector space interface.
const Teuchos::RCP< const LinearOperator< Real > > op_
virtual Real dot(const Vector &x) const =0
Compute where .
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol)
Compute gradient.
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
Apply Hessian approximation to vector.
Provides the interface to apply a linear operator.
virtual void set(const Vector &x)
Set where .
QuadraticObjective(const Teuchos::RCP< const LinearOperator< Real > > &op, const Teuchos::RCP< const Vector< Real > > &vec)