From be10fc2a90cc9f7c2d8a928317f37988ce0a048e Mon Sep 17 00:00:00 2001 From: Chris Beall Date: Fri, 11 Dec 2009 23:59:37 +0000 Subject: [PATCH] 18% performance boost by using pointer to address destination matrix A --- cpp/Matrix.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cpp/Matrix.cpp b/cpp/Matrix.cpp index 8650b39de..e5e0c5cfb 100644 --- a/cpp/Matrix.cpp +++ b/cpp/Matrix.cpp @@ -345,8 +345,12 @@ weighted_eliminate(Matrix& A, Vector& b, const Vector& sigmas) { for (int i=0;i