12 auto iter =
meta.find(metaKey);
13 return iter!=
meta.end();
27 return state.at(blockInd);
33 unsigned int currInd = 0;
35 output.segment(currInd, s.size()) = s;
48 if(totalInd < sum + s.size())
49 return s(totalInd - sum);
54 return std::numeric_limits<double>::quiet_NaN();
63 if(totalInd < sum + s.size())
64 return s(totalInd - sum);
70 return state.at(0)(0);
int TotalDim() const
The total number of parameters in the state, i.e., the sum of state[i].size()
std::unordered_map< std::string, boost::any > meta
A map containing extra information like the target density, run time, forward model output,...
std::vector< Eigen::VectorXd > state
The state variables.
double StateValue(unsigned int totalInd) const
bool HasMeta(std::string const &metaKey)
Checks to see if the meta map contains a particular key.
Eigen::VectorXd ToVector(int blockInd=-1) const