From 2092705d12aa7f974a97b43a5644ea8644a4e5d1 Mon Sep 17 00:00:00 2001 From: dellaert Date: Wed, 15 Oct 2014 00:27:43 +0200 Subject: [PATCH] Allow for other Eigen matrix types --- gtsam/base/VerticalBlockMatrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/base/VerticalBlockMatrix.h b/gtsam/base/VerticalBlockMatrix.h index 029f55c58..c09cc7577 100644 --- a/gtsam/base/VerticalBlockMatrix.h +++ b/gtsam/base/VerticalBlockMatrix.h @@ -74,8 +74,8 @@ namespace gtsam { } /** Construct from a container of the sizes of each vertical block and a pre-prepared matrix. */ - template - VerticalBlockMatrix(const CONTAINER& dimensions, const Matrix& matrix, bool appendOneDimension = false) : + template + VerticalBlockMatrix(const CONTAINER& dimensions, const Eigen::MatrixBase& matrix, bool appendOneDimension = false) : matrix_(matrix), rowStart_(0), rowEnd_(matrix.rows()), blockStart_(0) { fillOffsets(dimensions.begin(), dimensions.end(), appendOneDimension);