45 #ifndef ROL_SAMPLEDVECTOR_H
46 #define ROL_SAMPLEDVECTOR_H
56 std::vector<ROL::Ptr<Vector<Real> > >
vectors_;
62 void reset(
const bool flag =
true) {
64 typename std::map<std::vector<Real>,
int>::iterator it;
66 flags_[it->second] =
false;
83 void update(
const bool flag =
true) {
91 const std::vector<Real> ¶m) {
96 typename std::map<std::vector<Real>,
int>::iterator it
106 std::pair<std::vector<Real>,
int>(param, index));
117 const std::vector<Real> ¶m) {
121 typename std::map<std::vector<Real>,
int>::iterator it
129 std::pair<std::vector<Real>,
int>(param, index));
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
void reset(const bool flag=true)
std::vector< ROL::Ptr< Vector< Real > > > vectors_
Defines the linear algebra or vector space interface.
SampledVector(void)
Constructor.
std::vector< bool > flags_
void set(const Vector< Real > &x, const std::vector< Real > ¶m)
Set vector corresponding to input parameter.
std::map< std::vector< Real >, int > indices_
void update(const bool flag=true)
Update for SampledVector storage.