From cdbdea8e67fc5eb84f761bf6bb7396d95d3fd057 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Thu, 7 Nov 2013 21:41:18 +0000 Subject: [PATCH] Removed leftover Ordered file --- gtsam/linear/GaussianBayesTreeOrdered-inl.h | 59 --------------------- 1 file changed, 59 deletions(-) delete mode 100644 gtsam/linear/GaussianBayesTreeOrdered-inl.h diff --git a/gtsam/linear/GaussianBayesTreeOrdered-inl.h b/gtsam/linear/GaussianBayesTreeOrdered-inl.h deleted file mode 100644 index 1f6c8e9f5..000000000 --- a/gtsam/linear/GaussianBayesTreeOrdered-inl.h +++ /dev/null @@ -1,59 +0,0 @@ -/* ---------------------------------------------------------------------------- - - * GTSAM Copyright 2010, Georgia Tech Research Corporation, - * Atlanta, Georgia 30332-0415 - * All Rights Reserved - * Authors: Frank Dellaert, et al. (see THANKS for the full author list) - - * See LICENSE for the license information - - * -------------------------------------------------------------------------- */ - -/** - * @file GaussianBayesTree-inl.h - * @brief Gaussian Bayes Tree, the result of eliminating a GaussianJunctionTree - * @brief GaussianBayesTree - * @author Frank Dellaert - * @author Richard Roberts - */ - -#pragma once - -#include - -#include // Only to help Eclipse - -#include - -namespace gtsam { - -/* ************************************************************************* */ -namespace internal { -template -void optimizeInPlace(const typename BAYESTREE::sharedClique& clique, VectorValues& result) { - // parents are assumed to already be solved and available in result - clique->conditional()->solveInPlace(result); - - // starting from the root, call optimize on each conditional - BOOST_FOREACH(const typename BAYESTREE::sharedClique& child, clique->children_) - optimizeInPlace(child, result); -} - -/* ************************************************************************* */ -template -double logDeterminant(const typename BAYESTREE::sharedClique& clique) { - double result = 0.0; - - // this clique - result += clique->conditional()->get_R().diagonal().unaryExpr(std::ptr_fun(log)).sum(); - - // sum of children - BOOST_FOREACH(const typename BAYESTREE::sharedClique& child, clique->children_) - result += logDeterminant(child); - - return result; -} - -/* ************************************************************************* */ -} // \namespace internal -} // \namespace gtsam