30 template<
class BAYESTREE>
33 clique->conditional()->solveInPlace(result);
36 for(
const typename BAYESTREE::sharedClique& child: clique->children_)
37 optimizeInPlace<BAYESTREE>(child,
result);
41 template<
class BAYESTREE>
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);
void optimizeInPlace(const typename BAYESTREE::sharedClique &clique, VectorValues &result)
double logDeterminant(const typename BAYESTREE::sharedClique &clique)
EIGEN_DEVICE_FUNC const LogReturnType log() const
Gaussian Bayes Tree, the result of eliminating a GaussianJunctionTree.