From a67d9742545da3825bdf9c66f2429bb73ceecc81 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Fri, 4 Feb 2011 02:38:55 +0000 Subject: [PATCH] Only check for non-finite values when debugging --- gtsam/linear/HessianFactor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtsam/linear/HessianFactor.cpp b/gtsam/linear/HessianFactor.cpp index d406fdc2c..1bc021689 100644 --- a/gtsam/linear/HessianFactor.cpp +++ b/gtsam/linear/HessianFactor.cpp @@ -52,11 +52,13 @@ namespace gtsam { /* ************************************************************************* */ void HessianFactor::assertInvariants() const { +#ifndef NDEBUG // Check for non-finite values for(size_t i=0; i