Change template type

release/4.3a0
Frank Dellaert 2022-01-22 11:08:06 -05:00
parent a281a6522b
commit f2518d11f0
2 changed files with 6 additions and 6 deletions

View File

@ -23,8 +23,8 @@
namespace gtsam { namespace gtsam {
/* ************************************************************************* */ /* ************************************************************************* */
template<class FACTOR> template<class FACTORGRAPH>
void MetisIndex::augment(const FactorGraph<FACTOR>& factors) { 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> > 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::map<int32_t, std::set<int32_t> >::iterator iAdjMapIt;
std::set<Key> keySet; std::set<Key> keySet;

View File

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