From d8b531aaba8aae8f9a92332a4be59d102da97cfc Mon Sep 17 00:00:00 2001 From: cbeall3 Date: Fri, 15 May 2015 00:19:39 -0400 Subject: [PATCH] attempt to fix strange MKL-related error --- 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 b8b17f6c6..a8b177b43 100644 --- a/gtsam/linear/NoiseModel.cpp +++ b/gtsam/linear/NoiseModel.cpp @@ -141,7 +141,7 @@ bool Gaussian::equals(const Base& expected, double tol) const { /* ************************************************************************* */ Vector Gaussian::sigmas() const { // TODO(frank): can this be done faster? - return (thisR().transpose() * thisR()).inverse().diagonal().array().sqrt(); + return Vector((thisR().transpose() * thisR()).inverse().diagonal()).cwiseSqrt(); } /* ************************************************************************* */