From ab6fc4f68cb1381ae91b40a286fc1d521ac0f9ee Mon Sep 17 00:00:00 2001 From: Kai Ni Date: Thu, 10 Jun 2010 18:28:07 +0000 Subject: [PATCH] fixed broken unit tests --- cpp/SubgraphSolver.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/SubgraphSolver.h b/cpp/SubgraphSolver.h index 8e9ea565e..da9127d26 100644 --- a/cpp/SubgraphSolver.h +++ b/cpp/SubgraphSolver.h @@ -61,6 +61,10 @@ namespace gtsam { * the resulted linear system */ VectorConfig optimize(SubgraphPreconditioner& system) const; + + boost::shared_ptr prepareLinear(const SubgraphPreconditioner& fg) const { + return boost::shared_ptr(new SubgraphSolver(*this)); + } }; template const size_t SubgraphSolver::maxIterations_;