12 #include <boost/shared_ptr.hpp> 13 #include <gtsam/nonlinear/Ordering.h> 15 namespace gtsam {
namespace partition {
20 template <
class NLG,
class SubNLG,
class GenericGraph>
43 sharedSubNLG
makeSubNLG(
const NLG& fg,
const std::vector<size_t>& frontals,
const std::vector<size_t>&
sep,
const boost::shared_ptr<SubNLG>& parent)
const;
45 void processFactor(
const typename GenericGraph::value_type& factor,
const std::vector<int>& partitionTable,
46 std::vector<GenericGraph>& frontalFactors, NLG& sepFactors, std::vector<std::set<size_t> >& childSeps,
47 typename SubNLG::Weeklinks& weeklinks)
const;
52 const std::vector<size_t>&
keys,
const std::vector<int>& partitionTable,
const int numSubmaps,
53 std::vector<GenericGraph>& frontalFactors, vector<GenericUnaryGraph>& frontalUnaryFactors, NLG& sepFactors,
54 std::vector<std::vector<size_t> >& childFrontals, std::vector<std::vector<size_t> >& childSeps, std::vector<size_t>& localFrontals,
55 typename SubNLG::Weeklinks& weeklinks)
const;
61 const int numNodeStopPartition,
const int minNodesPerMap,
const boost::shared_ptr<SubNLG>& parent,
WorkSpace& workspace,
const bool verbose)
const;
65 const boost::shared_ptr<Cuts>& cuts,
const boost::shared_ptr<SubNLG>& parent,
WorkSpace& workspace,
const bool verbose)
const;
boost::shared_ptr< SubNLG > sharedSubNLG
static enum @843 ordering
sharedSubNLG root() const
NLG collectOriginalFactors(const GenericGraph &gfg, const GenericUnaryGraph &unaryFactors) const
std::vector< sharedGenericUnaryFactor > GenericUnaryGraph
sharedSubNLG recursivePartition(const GenericGraph &gfg, const GenericUnaryGraph &unaryFactors, const std::vector< size_t > &frontals, const std::vector< size_t > &sep, const int numNodeStopPartition, const int minNodesPerMap, const boost::shared_ptr< SubNLG > &parent, WorkSpace &workspace, const bool verbose) const
void processFactor(const typename GenericGraph::value_type &factor, const std::vector< int > &partitionTable, std::vector< GenericGraph > &frontalFactors, NLG &sepFactors, std::vector< std::set< size_t > > &childSeps, typename SubNLG::Weeklinks &weeklinks) const
sharedSubNLG makeSubNLG(const NLG &fg, const std::vector< size_t > &frontals, const std::vector< size_t > &sep, const boost::shared_ptr< SubNLG > &parent) const
std::vector< Symbol > int2symbol_
NestedDissection(const NLG &fg, const Ordering &ordering, const int numNodeStopPartition, const int minNodesPerMap, const bool verbose=false)
void partitionFactorsAndVariables(const GenericGraph &fg, const GenericUnaryGraph &unaryFactors, const std::vector< size_t > &keys, const std::vector< int > &partitionTable, const int numSubmaps, std::vector< GenericGraph > &frontalFactors, vector< GenericUnaryGraph > &frontalUnaryFactors, NLG &sepFactors, std::vector< std::vector< size_t > > &childFrontals, std::vector< std::vector< size_t > > &childSeps, std::vector< size_t > &localFrontals, typename SubNLG::Weeklinks &weeklinks) const