From 7e866c447fd843b0aa574038b7d9d5c292a135fa Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 20 Dec 2011 18:31:00 +0100 Subject: [PATCH] fix bug #391: improper stream output for uncompressed mode, also avoid double debugging outputs for column major matrices --- Eigen/src/SparseCore/SparseMatrix.h | 29 +++++++++++++++++++------ Eigen/src/SparseCore/SparseMatrixBase.h | 2 +- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 24ecce8bc..9cea4ca69 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -678,18 +678,33 @@ class SparseMatrix { EIGEN_DBG_SPARSE( s << "Nonzero entries:\n"; - for (Index i=0; i&>(m); diff --git a/Eigen/src/SparseCore/SparseMatrixBase.h b/Eigen/src/SparseCore/SparseMatrixBase.h index 7f5532fd4..536b6d596 100644 --- a/Eigen/src/SparseCore/SparseMatrixBase.h +++ b/Eigen/src/SparseCore/SparseMatrixBase.h @@ -308,7 +308,7 @@ template class SparseMatrixBase : public EigenBase else { SparseMatrix trans = m.derived(); - s << trans; + s << static_cast >&>(trans); } } return s;