We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c254e4c commit 48879afCopy full SHA for 48879af
gtsam/discrete/TableFactor.cpp
@@ -108,7 +108,9 @@ static Eigen::SparseVector<double> ComputeSparseTable(
108
*
109
*/
110
auto op = [&](const Assignment<Key>& assignment, double p) {
111
- if (p > 0) {
+ // Check if greater than 1e-11 because we consider
112
+ // smaller than that as numerically 0
113
+ if (p > 1e-11) {
114
// Get all the keys involved in this assignment
115
KeySet assignmentKeys;
116
for (auto&& [k, _] : assignment) {
0 commit comments