[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:04:39 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Ethan Eade <ethaneade> 07/01/15 18:04:39
Modified files:
. : linoperators.hh
Log message:
Fixed dynamic Matrix addition
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/linoperators.hh?cvsroot=toon&r1=1.11&r2=1.12
Patches:
Index: linoperators.hh
===================================================================
RCS file: /cvsroot/toon/TooN/linoperators.hh,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- linoperators.hh 23 Jul 2006 10:17:11 -0000 1.11
+++ linoperators.hh 15 Jan 2007 18:04:39 -0000 1.12
@@ -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++){
- lhs[r] += rhs[r];
- }
+ for(int r=0; r<lhs.num_rows(); r++)
+ for (int c=0; c<lhs.num_cols(); ++c)
+ lhs(r,c) += rhs(r,c);
return lhs;
}
- [Toon-members] TooN linoperators.hh,
Ethan Eade <=