From f1f21a85891c6574a764c30c81c5accde0632762 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 10 Jan 2010 13:53:31 +0000 Subject: [PATCH] inverted sign of square root to make inv sqrt positive for simple covariance matrices --- cpp/Matrix.cpp | 3 ++- cpp/testMatrix.cpp | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cpp/Matrix.cpp b/cpp/Matrix.cpp index 50e0274c2..65bed6976 100644 --- a/cpp/Matrix.cpp +++ b/cpp/Matrix.cpp @@ -618,7 +618,8 @@ Matrix inverse_square_root(const Matrix& A) { svd(A,U,S,V); // invert and sqrt diagonal of S - for(size_t i = 0; i