Fix syntax errors
parent
97b6e879ea
commit
3db7920f65
|
@ -23,12 +23,12 @@ namespace gtsam {
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
const FactorIndices& operator[](Key variable) const {
|
const FactorIndices& VariableIndex::operator[](Key variable) const {
|
||||||
KeyMap::const_iterator item = index_.find(variable);
|
return index_.find(variable)->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
const FactorIndices& at(Key variable) const {
|
const FactorIndices& VariableIndex::at(Key variable) const {
|
||||||
KeyMap::const_iterator item = (*this)[variable];
|
KeyMap::const_iterator item = index_.find(variable);
|
||||||
if(item == index_.end())
|
if(item == index_.end())
|
||||||
throw std::invalid_argument("Requested non-existent variable '" +
|
throw std::invalid_argument("Requested non-existent variable '" +
|
||||||
DefaultKeyFormatter(variable) +
|
DefaultKeyFormatter(variable) +
|
||||||
|
@ -37,7 +37,7 @@ const FactorIndices& at(Key variable) const {
|
||||||
return item->second;
|
return item->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool empty(Key variable) const {
|
bool VariableIndex::empty(Key variable) const {
|
||||||
return (*this)[variable].empty();
|
return (*this)[variable].empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -199,8 +199,8 @@ class VariableIndex {
|
||||||
VariableIndex(const T& factorGraph);
|
VariableIndex(const T& factorGraph);
|
||||||
VariableIndex(const gtsam::VariableIndex& other);
|
VariableIndex(const gtsam::VariableIndex& other);
|
||||||
|
|
||||||
const FactorIndices& at(Key variable) const;
|
gtsam::FactorIndices& at(gtsam::Key variable) const;
|
||||||
bool empty(Key variable) const;
|
bool empty(gtsam::Key variable) const;
|
||||||
|
|
||||||
// Testable
|
// Testable
|
||||||
bool equals(const gtsam::VariableIndex& other, double tol) const;
|
bool equals(const gtsam::VariableIndex& other, double tol) const;
|
||||||
|
|
|
@ -689,16 +689,16 @@ virtual class GaussianBayesTree {
|
||||||
|
|
||||||
#include <gtsam/linear/GaussianEliminationTree.h>
|
#include <gtsam/linear/GaussianEliminationTree.h>
|
||||||
virtual class GaussianEliminationTree {
|
virtual class GaussianEliminationTree {
|
||||||
GaussianEliminationTree(const GaussianFactorGraph& factorGraph,
|
GaussianEliminationTree(const gtsam::GaussianFactorGraph& factorGraph,
|
||||||
const VariableIndex& structure, const Ordering& order);
|
const gtsam::VariableIndex& structure, const gtsam::Ordering& order);
|
||||||
GaussianEliminationTree(const GaussianFactorGraph& factorGraph,
|
GaussianEliminationTree(const gtsam::GaussianFactorGraph& factorGraph,
|
||||||
const Ordering& order);
|
const gtsam::Ordering& order);
|
||||||
|
|
||||||
bool GaussianEliminationTree::equals(const This& other, double tol) const;
|
bool equals(const This& other, double tol) const;
|
||||||
|
|
||||||
void print(const std::string& name = "GaussianEliminationTree: ",
|
void print(const string name = "GaussianEliminationTree: ",
|
||||||
const KeyFormatter& formatter = DefaultKeyFormatter) const;
|
const gtsam::KeyFormatter& formatter = gtsam::DefaultKeyFormatter) const;
|
||||||
}
|
};
|
||||||
|
|
||||||
#include <gtsam/linear/GaussianISAM.h>
|
#include <gtsam/linear/GaussianISAM.h>
|
||||||
class GaussianISAM {
|
class GaussianISAM {
|
||||||
|
|
Loading…
Reference in New Issue