[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN linoperators.hh
From: |
Ethan Eade |
Subject: |
[Toon-members] TooN linoperators.hh |
Date: |
Mon, 15 Jan 2007 18:41:55 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Ethan Eade <ethaneade> 07/01/15 18:41:55
Modified files:
. : linoperators.hh
Log message:
My fix was stupid. It is now unfixed.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/linoperators.hh?cvsroot=toon&r1=1.12&r2=1.13
Patches:
Index: linoperators.hh
===================================================================
RCS file: /cvsroot/toon/TooN/linoperators.hh,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- linoperators.hh 15 Jan 2007 18:04:39 -0000 1.12
+++ linoperators.hh 15 Jan 2007 18:41:55 -0000 1.13
@@ -760,9 +760,9 @@
DynamicMatrix<MAccessor1>& operator += ( DynamicMatrix<MAccessor1>& lhs,
const DynamicMatrix<MAccessor2>& rhs){
assert(lhs.num_rows() == rhs.num_cols() && lhs.num_cols() == rhs.num_cols());
- for(int r=0; r<lhs.num_rows(); r++)
- for (int c=0; c<lhs.num_cols(); ++c)
- lhs(r,c) += rhs(r,c);
+ for(int r=0; r<lhs.num_rows(); r++){
+ lhs[r] += rhs[r];
+ }
return lhs;
}