44 #ifndef ROL_RISKMEASURE_HPP 45 #define ROL_RISKMEASURE_HPP 56 Teuchos::RCP<Vector<Real> >
g_;
57 Teuchos::RCP<Vector<Real> >
hv_;
69 g_ = (x.
dual()).clone();
70 hv_ = (x.
dual()).clone();
74 val_ = 0.0; gv_ = 0.0;
75 g_->zero(); hv_->zero();
88 virtual void update(
const Real val,
const Real weight) {
103 sampler.
sumAll(&val_,&val,1);
virtual const Vector & dual() const
Return dual representation of , for example, the result of applying a Riesz map, or change of basis...
virtual void getHessVec(Vector< Real > &hv, SampleGenerator< Real > &sampler)
virtual Real getValue(SampleGenerator< Real > &sampler)
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_