10 #ifndef ROL_SAMPLEDVECTOR_H
11 #define ROL_SAMPLEDVECTOR_H
15 template <
class Real,
class Key=std::vector<Real>>
27 void reset(
const bool flag =
true) {
49 void update(
const bool flag =
true) {
61 typename std::map<Key, int>::iterator it =
indices_.find(param);
69 indices_.insert(std::pair<Key, int>(param, index));
83 typename std::map<Key, int>::iterator it =
indices_.find(param);
89 indices_.insert(std::pair<Key, int>(param, index));
virtual ROL::Ptr< Vector > clone() const =0
Clone to make a new (uninitialized) vector.
void reset(const bool flag=true)
SampledVector(void)
Constructor.
Defines the linear algebra or vector space interface.
std::vector< ROL::Ptr< Vector< Real > > > vectors_
std::vector< bool > flags_
void update(const bool flag=true)
Update for SampledVector storage.
std::map< Key, int > indices_
void set(const Vector< Real > &x, const Key ¶m)
Set vector corresponding to input parameter.