Made new marginals with caching the default

release/4.3a0
Richard Roberts 2012-10-08 23:56:31 +00:00
parent 2841b8665f
commit a06e8060ae
1 changed files with 3 additions and 3 deletions

View File

@ -500,10 +500,10 @@ namespace gtsam {
sharedClique clique = (*this)[j];
// calculate or retrieve its marginal P(C) = P(F,S)
#ifdef MARGINAL2
FactorGraph<FactorType> cliqueMarginal = clique->marginal2(root_,function);
#else
#ifdef OLD_SHORTCUT_MARGINALS
FactorGraph<FactorType> cliqueMarginal = clique->marginal(root_,function);
#else
FactorGraph<FactorType> cliqueMarginal = clique->marginal2(root_,function);
#endif
// Reduce the variable indices to start at zero