From a290987e89fc4623be3407675598b292cddbaf3e Mon Sep 17 00:00:00 2001 From: tlegrand Date: Mon, 2 Jul 2007 12:59:49 +0000 Subject: [PATCH] "dMatrix distMatrix(pSize*(pSize-1)/2)" replaced by "distMatrix(pSize) " --- eo/src/eoSharing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo/src/eoSharing.h b/eo/src/eoSharing.h index bdc0bbd0..ff2e203b 100644 --- a/eo/src/eoSharing.h +++ b/eo/src/eoSharing.h @@ -99,7 +99,7 @@ public: throw std::runtime_error("Apptempt to do sharing with population of size 1"); value().resize(pSize); std::vector sim(pSize); // to hold the similarities - dMatrix distMatrix(pSize*(pSize-1)/2); // to hold the distances + dMatrix distMatrix(pSize); // to hold the distances // compute the similarities (wrong name for distMatrix, I know) distMatrix(0,0)=1;