Removed checkConsistency() from BayesTree
parent
15fb7234e6
commit
228a26947f
1
gtsam.h
1
gtsam.h
|
|
@ -819,7 +819,6 @@ virtual class BayesTree {
|
|||
void insert(const CLIQUE* subtree);
|
||||
size_t numCachedSeparatorMarginals() const;
|
||||
CLIQUE* clique(size_t j) const;
|
||||
bool checkConsistency() const;
|
||||
};
|
||||
|
||||
template<CONDITIONAL>
|
||||
|
|
|
|||
|
|
@ -800,23 +800,5 @@ namespace gtsam {
|
|||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
template<class CONDITIONAL, class CLIQUE>
|
||||
bool BayesTree<CONDITIONAL,CLIQUE>::checkConsistency() const {
|
||||
// Verify all nodes are mapped to initialized cliques
|
||||
bool result = true;
|
||||
for (gtsam::Index idx=0; idx<nodes_.size(); ++idx) {
|
||||
const sharedClique& clique = nodes_[idx];
|
||||
// Bad clique check
|
||||
if (!clique) {
|
||||
if (result)
|
||||
std::cout << "BayesTree consistency check failures:" << std::endl;
|
||||
std::cout << " Null pointer clique entry for node " << idx << std::endl;
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
/* ************************************************************************* */
|
||||
|
||||
} // \namespace gtsam
|
||||
|
|
|
|||
|
|
@ -290,13 +290,6 @@ namespace gtsam {
|
|||
return shared_ptr(new This(*this));
|
||||
}
|
||||
|
||||
/**
|
||||
* Verify internal consistency of indexing
|
||||
* Prints results to stdout
|
||||
* @return true iff correct
|
||||
*/
|
||||
bool checkConsistency() const;
|
||||
|
||||
protected:
|
||||
|
||||
/** private helper method for saving the Tree to a text file in GraphViz format */
|
||||
|
|
|
|||
Loading…
Reference in New Issue