44 #ifndef ROL_RANDOMVECTOR_H
45 #define ROL_RANDOMVECTOR_H
49 #include "ROL_Elementwise_Function.hpp"
66 Elementwise::UniformlyRandom<Real> ur(lower,upper);
83 Elementwise::UniformlyRandomMultiply<Real> urm;
94 #endif // ROL_RANDOMVECTOR_H
virtual const ROL::Ptr< const Vector< Real > > getUpperBound(void) const
Return the ref count pointer to the upper bound vector.
virtual void plus(const Vector &x)=0
Compute , where .
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
void RandomizeVector(Vector< Real > &x, const Real &lower=0.0, const Real &upper=1.0)
Fill a ROL::Vector with uniformly-distributed random numbers in the interval [lower,upper].
Defines the linear algebra or vector space interface.
Provides the interface to apply upper and lower bound constraints.
virtual void applyUnary(const Elementwise::UnaryFunction< Real > &f)
void RandomizeFeasibleVector(Vector< Real > &x, BoundConstraint< Real > &bnd)
Fill a ROL::Vector with uniformly-distributed random numbers which satisfy the supplied bound constra...
virtual void set(const Vector &x)
Set where .
virtual const ROL::Ptr< const Vector< Real > > getLowerBound(void) const
Return the ref count pointer to the lower bound vector.