32 namespace linearAlgorithms
49 template<
class CLIQUE>
55 const std::shared_ptr<CLIQUE>& clique,
61 for(
Key parent: clique->conditional_->parents())
73 parentPointers.reserve(clique->conditional()->nrParents());
74 for(
Key parent: clique->conditional()->parents()) {
76 dim += parentPointers.back()->second.size();
83 const Vector& parentVector = parentPointer->second;
84 xS.block(vectorPos,0,parentVector.size(),1) = parentVector.block(0,0,parentVector.size(),1);
85 vectorPos += parentVector.size();
93 const Vector rhs =
c.getb() -
c.S() * xS;
106 throw std::runtime_error(
107 "Internal error while optimizing clique. Trying to insert key '" +
DefaultKeyFormatter(*frontal)
112 vectorPosition +=
c.getDim(frontal);
142 template<
class BAYESTREE>
145 gttic(linear_optimizeBayesTree);
151 treeTraversal::no_op postVisitor;