41 const char*
what() const noexcept
override {
44 "\nRequested to marginalize out variable " +
formatter_(key_) +
", but this variable\n\ 45 is not a leaf. To make the variables you would like to marginalize be leaves,\n\ 46 their ordering should be constrained using the constrainedKeys argument to\n\ MarginalizeNonleafException(Key key, KeyFormatter formatter=DefaultKeyFormatter) noexcept
virtual ~MarginalizeNonleafException() noexcept
static const KeyFormatter DefaultKeyFormatter
const KeyFormatter & formatter
const char * what() const noexcept override
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
std::uint64_t Key
Integer nonlinear key type.