From ff9df2ba48a01ae1c673f9db39e8a00c762f43c7 Mon Sep 17 00:00:00 2001
From: Mark Jenkinson <mark@fmrib.ox.ac.uk>
Date: Mon, 10 Apr 2006 17:28:09 +0000
Subject: [PATCH] Reverted to branch

---
 sparse_matrix.cc | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/sparse_matrix.cc b/sparse_matrix.cc
index d92ea2f..901f5f4 100644
--- a/sparse_matrix.cc
+++ b/sparse_matrix.cc
@@ -6,8 +6,6 @@
 
 /*  CCOPYRIGHT  */
 
-#include "config.h"
-
 #include <iostream>
 #include <iomanip>
 #include <sstream>
@@ -96,10 +94,10 @@ namespace MISCMATHS {
     for(int r=1; r <= nrows; r++)
       ip(int(p(r))) = r;
     
-    for(int rr=1; rr <= nrows; rr++)
-      for(map<int,double>::const_iterator it=data[rr-1].begin(); it!=data[rr-1].end(); it++)
+    for(int r=1; r <= nrows; r++)
+      for(map<int,double>::const_iterator it=data[r-1].begin(); it!=data[r-1].end(); it++)
 	{
-	  pA.insert(int(ip(rr)), int(ip((*it).first+1)), (*it).second); 
+	  pA.insert(int(ip(r)), int(ip((*it).first+1)), (*it).second); 
 	}
   }
   
-- 
GitLab