Change template type
parent
a281a6522b
commit
f2518d11f0
|
@ -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;
|
||||||
|
|
|
@ -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_;
|
||||||
|
|
Loading…
Reference in New Issue