Skip to content

Commit

Permalink
Change template type
Browse files Browse the repository at this point in the history
  • Loading branch information
dellaert committed Jan 22, 2022
1 parent a281a65 commit f2518d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gtsam/inference/MetisIndex-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
namespace gtsam {

/* ************************************************************************* */
template<class FACTOR>
void MetisIndex::augment(const FactorGraph<FACTOR>& factors) {
template<class FACTORGRAPH>
void MetisIndex::augment(const FACTORGRAPH& factors) {
std::map<int32_t, std::set<int32_t> > iAdjMap; // Stores a set of keys that are adjacent to key x, with adjMap.first
std::map<int32_t, std::set<int32_t> >::iterator iAdjMapIt;
std::set<Key> keySet;
Expand Down
8 changes: 4 additions & 4 deletions gtsam/inference/MetisIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class GTSAM_EXPORT MetisIndex {
nKeys_(0) {
}

template<class FG>
MetisIndex(const FG& factorGraph) :
template<class FACTORGRAPH>
MetisIndex(const FACTORGRAPH& factorGraph) :
nKeys_(0) {
augment(factorGraph);
}
Expand All @@ -78,8 +78,8 @@ class GTSAM_EXPORT MetisIndex {
* Augment the variable index with new factors. This can be used when
* solving problems incrementally.
*/
template<class FACTOR>
void augment(const FactorGraph<FACTOR>& factors);
template<class FACTORGRAPH>
void augment(const FACTORGRAPH& factors);

const std::vector<int32_t>& xadj() const {
return xadj_;
Expand Down

0 comments on commit f2518d1

Please sign in to comment.