From eae169727ab95935a5ee0717d242c061f5acd89c Mon Sep 17 00:00:00 2001 From: PBerger Date: Mon, 17 Jun 2013 20:11:17 +0200 Subject: [PATCH] Fixed a critical bug in the GmmxxAdapter.h Former-commit-id: 062f330dbfa918a3a16bea6a9d8a6b92611c8c13 --- src/adapters/GmmxxAdapter.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/adapters/GmmxxAdapter.h b/src/adapters/GmmxxAdapter.h index 25ecda4bf..e5f0413f6 100644 --- a/src/adapters/GmmxxAdapter.h +++ b/src/adapters/GmmxxAdapter.h @@ -60,11 +60,11 @@ public: gmm::csr_matrix* result = new gmm::csr_matrix(matrix.rowCount, matrix.colCount); // Move Row Indications - result->jc(std::move(matrix.rowIndications)); + result->jc = std::vector(std::move(matrix.rowIndications)); // Move Columns Indications - result->ir(std::move(matrix.columnIndications)); + result->ir = std::vector(std::move(matrix.columnIndications)); // And do the same thing with the actual values. - result->pr(std::move(matrix.valueStorage)); + result->pr = std::vector(std::move(matrix.valueStorage)); LOG4CPLUS_DEBUG(logger, "Done converting matrix to gmm++ format."); @@ -128,11 +128,11 @@ public: result->setState(result->Initialized); // Move Row Indications - result->rowIndications(std::move(matrix.jc)); + result->rowIndications = std::vector(std::move(matrix.jc)); // Move Columns Indications - result->columnIndications(std::move(matrix.ir)); + result->columnIndications = std::vector(std::move(matrix.ir)); // And do the same thing with the actual values. - result->valueStorage(std::move(matrix.pr)); + result->valueStorage = std::vector(std::move(matrix.pr)); result->currentSize = realNonZeros; result->lastRow = matrix.nrows() - 1;