From 65b949c00861ad70ded70b357b5be61dc80c043d Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Thu, 29 Oct 2009 20:12:07 +0000 Subject: [PATCH] Fixed flaw in pseudoinverse calculation, and updated tests for Matrix and Vector --- cpp/Vector.cpp | 9 ++------ cpp/testMatrix.cpp | 51 +++++----------------------------------------- cpp/testVector.cpp | 6 +++--- 3 files changed, 10 insertions(+), 56 deletions(-) diff --git a/cpp/Vector.cpp b/cpp/Vector.cpp index 191446a73..064ef0bc3 100644 --- a/cpp/Vector.cpp +++ b/cpp/Vector.cpp @@ -188,17 +188,12 @@ namespace gtsam { Vector whouse_solve(const Vector& v, const Vector& precisions) { if (v.size() != precisions.size()) throw invalid_argument("V and precisions have different sizes!"); - // get the square root of the precisions - //FIXME: this probably means that storing precisions is a bad idea - Vector D(precisions.size()); - for(int i=0;i