add methods in gtsam_unstable

release/4.3a0
Varun Agrawal 2024-12-08 16:58:19 -05:00
parent 0afc198411
commit 975fe627d9
4 changed files with 65 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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