diff --git a/gtsam_unstable/base/tests/testBAD.cpp b/gtsam_unstable/base/tests/testBAD.cpp index 4320ce931..5ed02edd0 100644 --- a/gtsam_unstable/base/tests/testBAD.cpp +++ b/gtsam_unstable/base/tests/testBAD.cpp @@ -93,7 +93,13 @@ public: /// linearize to a GaussianFactor boost::shared_ptr linearize(const Values& c) const { - return boost::shared_ptr(new JacobianFactor()); + // We will construct an n-ary factor below, where terms is a container whose + // value type is std::pair, specifying the + // collection of keys and matrices making up the factor. + std::map terms; + Vector b; + SharedDiagonal model = SharedDiagonal(); + return boost::shared_ptr(new JacobianFactor(terms,b,model)); } };