44 #ifndef ROL_RISKMEASURE_HPP
45 #define ROL_RISKMEASURE_HPP
56 Teuchos::RCP<Vector<Real> >
g_;
57 Teuchos::RCP<Vector<Real> >
hv_;
80 virtual void update(
const Real val,
const Real weight) {
81 this->
val_ += weight * val;
85 this->
g_->axpy(weight,g);
90 this->
hv_->axpy(weight,hv);
virtual void getHessVec(Vector< Real > &hv, SampleGenerator< Real > &sampler)
virtual Real getValue(SampleGenerator< Real > &sampler)
virtual Teuchos::RCP< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
virtual void getGradient(Vector< Real > &g, SampleGenerator< Real > &sampler)
Defines the linear algebra or vector space interface.
void sumAll(Real *input, Real *output, int dim) const
virtual void update(const Real val, const Vector< Real > &g, const Real gv, const Vector< Real > &hv, const Real weight)
Teuchos::RCP< Vector< Real > > hv_
virtual void update(const Real val, const Real weight)
virtual void update(const Real val, const Vector< Real > &g, const Real weight)
virtual void reset(Teuchos::RCP< Vector< Real > > &x0, const Vector< Real > &x)
virtual void reset(Teuchos::RCP< Vector< Real > > &x0, const Vector< Real > &x, Teuchos::RCP< Vector< Real > > &v0, const Vector< Real > &v)
Teuchos::RCP< Vector< Real > > g_