32 class MarginalizeNonleafException :
public std::exception {
35 mutable std::string what_;
38 key_(key), formatter_(formatter) {}
39 virtual ~MarginalizeNonleafException()
noexcept {}
40 Key key()
const {
return key_; }
41 const char* what()
const noexcept override {
44"\nRequested to marginalize out variable " + formatter_(key_) +
", but this variable\n\
45is not a leaf. To make the variables you would like to marginalize be leaves,\n\
46their ordering should be constrained using the constrainedKeys argument to\n\
Global functions in a separate testing namespace.
Definition chartTesting.h:28
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Definition Key.cpp:30
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition Key.h:35
std::uint64_t Key
Integer nonlinear key type.
Definition types.h:43