Add restrict
parent
6b0be53fbd
commit
43544ae194
|
@ -53,11 +53,6 @@ class GTSAM_UNSTABLE_EXPORT AllDiff : public Constraint {
|
||||||
/// Multiply into a decisiontree
|
/// Multiply into a decisiontree
|
||||||
DecisionTreeFactor operator*(const DecisionTreeFactor& f) const override;
|
DecisionTreeFactor operator*(const DecisionTreeFactor& f) const override;
|
||||||
|
|
||||||
/// Compute error for each assignment and return as a tree
|
|
||||||
AlgebraicDecisionTree<Key> errorTree() const override {
|
|
||||||
throw std::runtime_error("AllDiff::error not implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ensure Arc-consistency by checking every possible value of domain j.
|
* Ensure Arc-consistency by checking every possible value of domain j.
|
||||||
* @param j domain to be checked
|
* @param j domain to be checked
|
||||||
|
|
|
@ -91,11 +91,6 @@ class BinaryAllDiff : public Constraint {
|
||||||
const Domains&) const override {
|
const Domains&) const override {
|
||||||
throw std::runtime_error("BinaryAllDiff::partiallyApply not implemented");
|
throw std::runtime_error("BinaryAllDiff::partiallyApply not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Compute error for each assignment and return as a tree
|
|
||||||
AlgebraicDecisionTree<Key> errorTree() const override {
|
|
||||||
throw std::runtime_error("BinaryAllDiff::error not implemented");
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
|
@ -125,6 +125,17 @@ class GTSAM_UNSTABLE_EXPORT Constraint : public DiscreteFactor {
|
||||||
return toDecisionTreeFactor().max(keys);
|
return toDecisionTreeFactor().max(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Compute error for each assignment and return as a tree
|
||||||
|
AlgebraicDecisionTree<Key> errorTree() const override {
|
||||||
|
throw std::runtime_error("Constraint::error not implemented");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Compute error for each assignment and return as a tree
|
||||||
|
DiscreteFactor::shared_ptr restrict(
|
||||||
|
const DiscreteValues& assignment) const override {
|
||||||
|
throw std::runtime_error("Constraint::restrict not implemented");
|
||||||
|
}
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Wrapper support
|
/// @name Wrapper support
|
||||||
/// @{
|
/// @{
|
||||||
|
|
|
@ -69,11 +69,6 @@ class GTSAM_UNSTABLE_EXPORT Domain : public Constraint {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Compute error for each assignment and return as a tree
|
|
||||||
AlgebraicDecisionTree<Key> errorTree() const override {
|
|
||||||
throw std::runtime_error("Domain::error not implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return concise string representation, mostly to debug arc consistency.
|
// Return concise string representation, mostly to debug arc consistency.
|
||||||
// Converts from base 0 to base1.
|
// Converts from base 0 to base1.
|
||||||
std::string base1Str() const;
|
std::string base1Str() const;
|
||||||
|
|
|
@ -49,11 +49,6 @@ class GTSAM_UNSTABLE_EXPORT SingleValue : public Constraint {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Compute error for each assignment and return as a tree
|
|
||||||
AlgebraicDecisionTree<Key> errorTree() const override {
|
|
||||||
throw std::runtime_error("SingleValue::error not implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Calculate value
|
/// Calculate value
|
||||||
double evaluate(const Assignment<Key>& values) const override;
|
double evaluate(const Assignment<Key>& values) const override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue