add methods in gtsam_unstable
parent
0afc198411
commit
975fe627d9
|
@ -75,6 +75,22 @@ class GTSAM_UNSTABLE_EXPORT AllDiff : public Constraint {
|
|||
|
||||
/// Get the number of non-zero values contained in this factor.
|
||||
uint64_t nrValues() const override { return 1; };
|
||||
|
||||
DiscreteFactor::shared_ptr sum(size_t nrFrontals) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr sum(const Ordering& keys) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr max(size_t nrFrontals) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr max(const Ordering& keys) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace gtsam
|
||||
|
|
|
@ -99,6 +99,22 @@ class BinaryAllDiff : public Constraint {
|
|||
|
||||
/// Get the number of non-zero values contained in this factor.
|
||||
uint64_t nrValues() const override { return 1; };
|
||||
|
||||
DiscreteFactor::shared_ptr sum(size_t nrFrontals) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr sum(const Ordering& keys) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr max(size_t nrFrontals) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr max(const Ordering& keys) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace gtsam
|
||||
|
|
|
@ -114,6 +114,22 @@ class GTSAM_UNSTABLE_EXPORT Domain : public Constraint {
|
|||
|
||||
/// Partially apply known values, domain version
|
||||
Constraint::shared_ptr partiallyApply(const Domains& domains) const override;
|
||||
|
||||
DiscreteFactor::shared_ptr sum(size_t nrFrontals) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr sum(const Ordering& keys) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr max(size_t nrFrontals) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr max(const Ordering& keys) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace gtsam
|
||||
|
|
|
@ -55,7 +55,7 @@ class GTSAM_UNSTABLE_EXPORT SingleValue : public Constraint {
|
|||
}
|
||||
|
||||
/// Calculate value
|
||||
double operator()(const DiscreteValues& values) const override;
|
||||
double operator()(const Assignment<Key>& values) const override;
|
||||
|
||||
/// Convert into a decisiontree
|
||||
DecisionTreeFactor toDecisionTreeFactor() const override;
|
||||
|
@ -80,6 +80,22 @@ class GTSAM_UNSTABLE_EXPORT SingleValue : public Constraint {
|
|||
|
||||
/// Get the number of non-zero values contained in this factor.
|
||||
uint64_t nrValues() const override { return 1; };
|
||||
|
||||
DiscreteFactor::shared_ptr sum(size_t nrFrontals) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr sum(const Ordering& keys) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr max(size_t nrFrontals) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
|
||||
DiscreteFactor::shared_ptr max(const Ordering& keys) const override {
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace gtsam
|
||||
|
|
Loading…
Reference in New Issue