From e52b6efb681f4eb4822ecd73b41cde94a677f6e8 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 8 Oct 2012 23:27:39 +0000 Subject: [PATCH] Fixed typo/spelling --- gtsam/inference/BayesTree-inl.h | 4 ++-- gtsam/inference/BayesTree.h | 4 ++-- gtsam/inference/BayesTreeCliqueBase-inl.h | 4 ++-- gtsam/inference/BayesTreeCliqueBase.h | 2 +- gtsam/inference/tests/testBayesTree.cpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gtsam/inference/BayesTree-inl.h b/gtsam/inference/BayesTree-inl.h index 53924b632..0baf8c99b 100644 --- a/gtsam/inference/BayesTree-inl.h +++ b/gtsam/inference/BayesTree-inl.h @@ -639,10 +639,10 @@ namespace gtsam { } } - // Delete cachedShorcuts for each orphan subtree + // Delete cachedShortcuts for each orphan subtree //TODO: Consider Improving BOOST_FOREACH(sharedClique& orphan, orphans) - orphan->deleteCachedShorcuts(); + orphan->deleteCachedShortcuts(); } /* ************************************************************************* */ diff --git a/gtsam/inference/BayesTree.h b/gtsam/inference/BayesTree.h index bd0e030fb..631fad53d 100644 --- a/gtsam/inference/BayesTree.h +++ b/gtsam/inference/BayesTree.h @@ -225,8 +225,8 @@ namespace gtsam { void clear(); /** Clear all shortcut caches - use before timing on marginal calculation to avoid residual cache data */ - inline void deleteCachedShorcuts() { - root_->deleteCachedShorcuts(); + inline void deleteCachedShorctuts() { + root_->deleteCachedShortcuts(); } /** Apply a permutation to all cliques */ diff --git a/gtsam/inference/BayesTreeCliqueBase-inl.h b/gtsam/inference/BayesTreeCliqueBase-inl.h index 81795bf22..1b79fb096 100644 --- a/gtsam/inference/BayesTreeCliqueBase-inl.h +++ b/gtsam/inference/BayesTreeCliqueBase-inl.h @@ -420,14 +420,14 @@ namespace gtsam { /* ************************************************************************* */ template - void BayesTreeCliqueBase::deleteCachedShorcuts() { + void BayesTreeCliqueBase::deleteCachedShortcuts() { // When a shortcut is requested, all of the shortcuts between it and the // root are also generated. So, if this clique's cached shortcut is set, // recursively call over all child cliques. Otherwise, it is unnecessary. if (cachedShortcut_) { BOOST_FOREACH(derived_ptr& child, children_) { - child->deleteCachedShorcuts(); + child->deleteCachedShortcuts(); } //Delete CachedShortcut for this clique diff --git a/gtsam/inference/BayesTreeCliqueBase.h b/gtsam/inference/BayesTreeCliqueBase.h index 662c7f22f..ed9b8bb18 100644 --- a/gtsam/inference/BayesTreeCliqueBase.h +++ b/gtsam/inference/BayesTreeCliqueBase.h @@ -220,7 +220,7 @@ namespace gtsam { * This deletes the cached shortcuts of all cliques (subtree) below this clique. * This is performed when the bayes tree is modified. */ - void deleteCachedShorcuts(); + void deleteCachedShortcuts(); /** return cached shortcut of the clique */ const boost::optional >& cachedShortcut() const { diff --git a/gtsam/inference/tests/testBayesTree.cpp b/gtsam/inference/tests/testBayesTree.cpp index 89a9a6529..3d3656aa4 100644 --- a/gtsam/inference/tests/testBayesTree.cpp +++ b/gtsam/inference/tests/testBayesTree.cpp @@ -288,7 +288,7 @@ TEST( BayesTree, shortcutCheck ) } // Check if all the cached shortcuts are cleared - rootClique->deleteCachedShorcuts(); + rootClique->deleteCachedShortcuts(); BOOST_FOREACH(SymbolicBayesTree::sharedClique& clique, allCliques) { bool notCleared = clique->cachedShortcut(); CHECK( notCleared == false);