From dcc57e1a24af7cb888df82fa7409d96bb647065c Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Thu, 12 Jun 2014 08:49:21 +0200
Subject: [PATCH] [MathLib] DenseMatrix::write() print the matrix dims, too.

---
 MathLib/LinAlg/Dense/DenseMatrix-impl.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MathLib/LinAlg/Dense/DenseMatrix-impl.h b/MathLib/LinAlg/Dense/DenseMatrix-impl.h
index 1bd2e873c1b..0d871635b05 100644
--- a/MathLib/LinAlg/Dense/DenseMatrix-impl.h
+++ b/MathLib/LinAlg/Dense/DenseMatrix-impl.h
@@ -276,6 +276,7 @@ template <typename FP_TYPE, typename IDX_TYPE>
 void
 DenseMatrix<FP_TYPE, IDX_TYPE>::write (std::ostream &out) const
 {
+	out << _n_rows << " " << _n_cols << "\n";
 	for (IDX_TYPE i = 0; i < _n_rows; i++) {
 		for (IDX_TYPE j = 0; j < _n_cols; j++) {
 			out << _data[address(i, j)] << "\t";
-- 
GitLab