From 4718acdabcd18bf9456ffccff4156e99fa6ecc91 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Tue, 9 Jul 2013 17:50:47 +0000 Subject: [PATCH] Put back returning Unit model instead of null from QR for compatibility with old code --- gtsam/linear/NoiseModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/linear/NoiseModel.cpp b/gtsam/linear/NoiseModel.cpp index b72843b83..473d1b839 100644 --- a/gtsam/linear/NoiseModel.cpp +++ b/gtsam/linear/NoiseModel.cpp @@ -131,7 +131,7 @@ SharedDiagonal Gaussian::QR(Matrix& Ab) const { // TODO: necessary to isolate last column? // householder(Ab, maxRank); - return SharedDiagonal(); + return Unit::Create(maxRank); } void Gaussian::WhitenSystem(vector& A, Vector& b) const {