45 #ifndef ROL_SAMPLEDSCALAR_H
46 #define ROL_SAMPLEDSCALAR_H
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));
108 scalars_.push_back(static_cast<Real>(0));
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));
void update(const bool flag=true)
Update for SampledScalar storage.
void reset(const bool flag=true)
void set(const Real &x, const std::vector< Real > ¶m)
Set vector corresponding to input parameter.
std::vector< Real > scalars_
std::vector< bool > flags_
SampledScalar(void)
Constructor.
std::map< std::vector< Real >, int > indices_