From ad9dc05663c75b271e2ddf8bd8d039eaa92313ef 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 13830861f..6f41bdc18 100644 --- a/Eigen/src/Core/IO.h +++ b/Eigen/src/Core/IO.h @@ -193,7 +193,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;