Change template type
parent
a281a6522b
commit
f2518d11f0
|
@ -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;
|
||||
|
|
|
@ -62,8 +62,8 @@ public:
|
|||
nKeys_(0) {
|
||||
}
|
||||
|
||||
template<class FG>
|
||||
MetisIndex(const FG& factorGraph) :
|
||||
template<class FACTORGRAPH>
|
||||
MetisIndex(const FACTORGRAPH& factorGraph) :
|
||||
nKeys_(0) {
|
||||
augment(factorGraph);
|
||||
}
|
||||
|
@ -78,8 +78,8 @@ public:
|
|||
* 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_;
|
||||
|
|
Loading…
Reference in New Issue