From 965ee4e8539554e0a52a7fcb7b5d59d47694e2ab Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Thu, 17 Oct 2013 14:14:06 +0200 Subject: [PATCH] consider all columns for aligned output (fixes bug #616) --- Eigen/src/Core/IO.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/IO.h b/Eigen/src/Core/IO.h index c8d5f6379..a7135a111 100644 --- a/Eigen/src/Core/IO.h +++ b/Eigen/src/Core/IO.h @@ -189,7 +189,7 @@ std::ostream & print_matrix(std::ostream & s, const Derived& _m, const IOFormat& if(align_cols) { // compute the largest width - for(Index j = 1; j < m.cols(); ++j) + for(Index j = 0; j < m.cols(); ++j) for(Index i = 0; i < m.rows(); ++i) { std::stringstream sstr;