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));