evaluate needed for correct test results

release/4.3a0
Varun Agrawal 2025-01-01 11:37:49 -05:00
parent 782f39a0e2
commit e854d15033
1 changed files with 7 additions and 0 deletions

View File

@ -161,6 +161,13 @@ class GTSAM_EXPORT DiscreteTableConditional : public DiscreteConditional {
/// Return the underlying TableFactor
TableFactor table() const { return table_; }
using BaseConditional::evaluate; // HybridValues version
/// Evaluate the conditional given the values.
virtual double evaluate(const Assignment<Key>& values) const override {
return table_.evaluate(values);
}
/**
* @brief Create new conditional by maximizing over all
* values with the same separator.