From 0a5f2205343eb95f75d63c70f09cdb049985243e Mon Sep 17 00:00:00 2001 From: alexhagiopol Date: Fri, 20 Feb 2015 14:33:15 -0500 Subject: [PATCH] 10% reduction in lines of code included by Vector.h. --- gtsam/base/Matrix.h | 6 ++++++ gtsam/base/Vector.cpp | 5 +++-- gtsam/base/Vector.h | 12 +++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/gtsam/base/Matrix.h b/gtsam/base/Matrix.h index c3cbfa341..294b5e63a 100644 --- a/gtsam/base/Matrix.h +++ b/gtsam/base/Matrix.h @@ -27,6 +27,12 @@ #include #include +#include +#include +#include +#include + + /** * Matrix is a typedef in the gtsam namespace * TODO: make a version to work with matlab wrapping diff --git a/gtsam/base/Vector.cpp b/gtsam/base/Vector.cpp index a9ef8fe10..5368e708e 100644 --- a/gtsam/base/Vector.cpp +++ b/gtsam/base/Vector.cpp @@ -16,9 +16,10 @@ * @author Frank Dellaert */ + #include #include -#include +//#include #include #include #include @@ -27,7 +28,7 @@ #include #include #include - +#include //added by alex #include diff --git a/gtsam/base/Vector.h b/gtsam/base/Vector.h index 74cd248a1..58e1d2ff6 100644 --- a/gtsam/base/Vector.h +++ b/gtsam/base/Vector.h @@ -18,14 +18,16 @@ // \callgraph + #pragma once - #include -#include -#include +//#include +//#include #include -#include - +//#include +//#include +//#include +#include namespace gtsam { // Vector is just a typedef of the Eigen dynamic vector type