Formatting

release/4.3a0
Andrew Melim 2014-11-07 22:00:19 -05:00
parent 88a11329c0
commit ea19fae155
2 changed files with 81 additions and 83 deletions

View File

@ -23,10 +23,10 @@
namespace gtsam {
/* ************************************************************************* */
template<class FACTOR>
void MetisIndex::augment(const FactorGraph<FACTOR>& factors)
{
/* ************************************************************************* */
template<class FACTOR>
void MetisIndex::augment(const FactorGraph<FACTOR>& factors)
{
std::map<int, FastSet<int> > adjMap;
std::map<int, FastSet<int> >::iterator adjMapIt;
std::set<Key> keySet;
@ -70,8 +70,6 @@ namespace gtsam {
// Normalize, subtract the smallest key
std::transform(adj_.begin(), adj_.end(), adj_.begin(), std::bind2nd(std::minus<size_t>(), minKey));
}
}
}

View File

@ -35,18 +35,18 @@ namespace gtsam {
* that involve each variable.
* \nosubgrouping
*/
class GTSAM_EXPORT MetisIndex
{
public:
class GTSAM_EXPORT MetisIndex
{
public:
typedef boost::shared_ptr<MetisIndex> shared_ptr;
private:
private:
FastVector<int> xadj_; // Index of node's adjacency list in adj
FastVector<int> adj_; // Stores ajacency lists of all nodes, appended into a single vector
size_t nFactors_; // Number of factors in the original factor graph
size_t nKeys_; //
public:
public:
/// @name Standard Constructors
/// @{
@ -74,7 +74,7 @@ public:
size_t nValues() const { return nKeys_; }
/// @}
};
};
}