30 template<
class BAYESTREE>
31 void optimizeInPlace(
const typename BAYESTREE::sharedClique& clique, VectorValues& result) {
33 clique->conditional()->solveInPlace(result);
36 for(
const typename BAYESTREE::sharedClique& child: clique->children_)
37 optimizeInPlace<BAYESTREE>(child, result);
41 template<
class BAYESTREE>
42 double logDeterminant(
const typename BAYESTREE::sharedClique& clique) {
46 result += clique->conditional()->R().diagonal().unaryExpr(std::ptr_fun<double,double>(log)).sum();
49 for(
const typename BAYESTREE::sharedClique& child: clique->children_)
50 result += logDeterminant<BAYESTREE>(child);
Gaussian Bayes Tree, the result of eliminating a GaussianJunctionTree.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28