rename GTSAM_DT_NO_PRUNING to GTSAM_DT_NO_MERGING to help with disambiguation
parent
70ffbf32bc
commit
23520432ec
|
|
@ -200,7 +200,7 @@ namespace gtsam {
|
||||||
|
|
||||||
/// If all branches of a choice node f are the same, just return a branch.
|
/// If all branches of a choice node f are the same, just return a branch.
|
||||||
static NodePtr Unique(const ChoicePtr& f) {
|
static NodePtr Unique(const ChoicePtr& f) {
|
||||||
#ifndef GTSAM_DT_NO_PRUNING
|
#ifndef GTSAM_DT_NO_MERGING
|
||||||
// If all the branches are the same, we can merge them into one
|
// If all the branches are the same, we can merge them into one
|
||||||
if (f->allSame_) {
|
if (f->allSame_) {
|
||||||
assert(f->branches().size() > 0);
|
assert(f->branches().size() > 0);
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#include <gtsam/discrete/DiscreteKey.h> // make sure we have traits
|
#include <gtsam/discrete/DiscreteKey.h> // make sure we have traits
|
||||||
#include <gtsam/discrete/DiscreteValues.h>
|
#include <gtsam/discrete/DiscreteValues.h>
|
||||||
// headers first to make sure no missing headers
|
// headers first to make sure no missing headers
|
||||||
//#define GTSAM_DT_NO_PRUNING
|
//#define GTSAM_DT_NO_MERGING
|
||||||
#include <gtsam/discrete/AlgebraicDecisionTree.h>
|
#include <gtsam/discrete/AlgebraicDecisionTree.h>
|
||||||
#include <gtsam/discrete/DecisionTree-inl.h> // for convert only
|
#include <gtsam/discrete/DecisionTree-inl.h> // for convert only
|
||||||
#define DISABLE_TIMING
|
#define DISABLE_TIMING
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// #define DT_DEBUG_MEMORY
|
// #define DT_DEBUG_MEMORY
|
||||||
// #define GTSAM_DT_NO_PRUNING
|
// #define GTSAM_DT_NO_MERGING
|
||||||
#define DISABLE_DOT
|
#define DISABLE_DOT
|
||||||
#include <CppUnitLite/TestHarness.h>
|
#include <CppUnitLite/TestHarness.h>
|
||||||
#include <gtsam/base/Testable.h>
|
#include <gtsam/base/Testable.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue