From 0194926dc20d441e1cb4850818c568a3170a5374 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Fri, 18 Dec 2009 05:14:34 +0000 Subject: [PATCH] transpose not needed --- cpp/NonlinearFactor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/NonlinearFactor.h b/cpp/NonlinearFactor.h index c02e5cbed..03d35765e 100644 --- a/cpp/NonlinearFactor.h +++ b/cpp/NonlinearFactor.h @@ -92,7 +92,7 @@ namespace gtsam { /** calculate the error of the factor */ double error(const Config& c) const { Vector e = error_vector(c) / sigma_; - return 0.5 * inner_prod(trans(e),e); + return 0.5 * inner_prod(e,e); }; /** get the size of the factor */