Fixed typo/spelling
parent
2719f7ca86
commit
e52b6efb68
|
|
@ -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();
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -420,14 +420,14 @@ namespace gtsam {
|
|||
|
||||
/* ************************************************************************* */
|
||||
template<class DERIVED, class CONDITIONAL>
|
||||
void BayesTreeCliqueBase<DERIVED, CONDITIONAL>::deleteCachedShorcuts() {
|
||||
void BayesTreeCliqueBase<DERIVED, CONDITIONAL>::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
|
||||
|
|
|
|||
|
|
@ -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<BayesNet<ConditionalType> >& cachedShortcut() const {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue