From ad3922ec180edb25e62c8fc0778c60a653375213 Mon Sep 17 00:00:00 2001 From: PBerger Date: Wed, 23 Jan 2013 22:49:32 +0100 Subject: [PATCH] Fixed a bug in the GmmAdapter with non-square matrices being truncated. --- src/adapters/GmmxxAdapter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/GmmxxAdapter.h b/src/adapters/GmmxxAdapter.h index 1d0fde721..96f3505ec 100644 --- a/src/adapters/GmmxxAdapter.h +++ b/src/adapters/GmmxxAdapter.h @@ -31,7 +31,7 @@ public: LOG4CPLUS_DEBUG(logger, "Converting matrix with " << realNonZeros << " non-zeros to gmm++ format."); // Prepare the resulting matrix. - gmm::csr_matrix* result = new gmm::csr_matrix(matrix.rowCount, matrix.rowCount); + gmm::csr_matrix* result = new gmm::csr_matrix(matrix.rowCount, matrix.colCount); // Copy Row Indications std::copy(matrix.rowIndications.begin(), matrix.rowIndications.end(), std::back_inserter(result->jc));