45 #ifndef ROL_SAMPLEDVECTOR_H
46 #define ROL_SAMPLEDVECTOR_H
50 template <
class Real,
class Key=std::vector<Real>>
62 void reset(
const bool flag =
true) {
84 void update(
const bool flag =
true) {
96 typename std::map<Key, int>::iterator it =
indices_.find(param);
104 indices_.insert(std::pair<Key, int>(param, index));
118 typename std::map<Key, int>::iterator it =
indices_.find(param);
124 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.