44 #ifndef ROL_CVARVECTOR_HPP
45 #define ROL_CVARVECTOR_HPP
55 Teuchos::RCP<Vector<Real> >
vec_;
67 void scale(
const Real alpha ) {
69 this->
vec_->scale(alpha);
86 return sqrt( this->
dot(*
this) );
93 Teuchos::RCP<const Vector<Real> >
getVector()
const {
97 Teuchos::RCP<Vector<Real> >
clone()
const {
99 Teuchos::RCP<Vector<Real> > vec = Teuchos::rcp_dynamic_cast<
Vector<Real> >(
101 return Teuchos::rcp(
new CVaRVector( var, vec ) );
109 this->
vec_->set(vec);
Teuchos::RCP< Vector< Real > > vec_
Real norm() const
Returns where .
void scale(const Real alpha)
Compute where .
Defines the linear algebra or vector space interface.
const Real getVaR() const
CVaRVector(Real &var, Teuchos::RCP< Vector< Real > > &vec)
void axpy(const Real alpha, const Vector< Real > &x)
Compute where .
Teuchos::RCP< const Vector< Real > > getVector() const
void setVaR(const Real var)
void plus(const Vector< Real > &x)
Compute , where .
void setVector(const Vector< Real > &vec)
Teuchos::RCP< Vector< Real > > clone() const
Clone to make a new (uninitialized) vector.
Real dot(const Vector< Real > &x) const
Compute where .