[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN linoperators.hh
From: |
Georg Klein |
Subject: |
[Toon-members] TooN linoperators.hh |
Date: |
Thu, 24 Jan 2008 15:07:42 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Georg Klein <georgklein> 08/01/24 15:07:42
Modified files:
. : linoperators.hh
Log message:
Make operator!= for vectors work
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/linoperators.hh?cvsroot=toon&r1=1.19&r2=1.20
Patches:
Index: linoperators.hh
===================================================================
RCS file: /cvsroot/toon/TooN/linoperators.hh,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- linoperators.hh 12 Dec 2007 15:59:43 -0000 1.19
+++ linoperators.hh 24 Jan 2008 15:07:41 -0000 1.20
@@ -120,36 +120,36 @@
template<int Size, class Accessor1, class Accessor2>
inline bool operator!=(const FixedVector<Size, Accessor1>& lhs, const
FixedVector<Size, Accessor2>& rhs){
for(int i=0; i < Size; i++)
- if(lhs[i] == rhs[i])
- return 0;
+ if(lhs[i] != rhs[i])
return 1;
+ return 0;
}
template<int Size, class Accessor1, class Accessor2>
inline bool operator!=(const FixedVector<Size, Accessor1>& lhs, const
DynamicVector<Accessor2>& rhs){
assert(rhs.size() == Size);
for(int i=0; i < Size; i++)
- if(lhs[i] == rhs[i])
- return 0;
+ if(lhs[i] != rhs[i])
return 1;
+ return 0;
}
template<class Accessor1, class Accessor2>
inline bool operator!=(const DynamicVector<Accessor1>& lhs, const
DynamicVector<Accessor2>& rhs){
assert(rhs.size() == lhs.size());
for(int i=0; i < rhs.size(); i++)
- if(lhs[i] == rhs[i])
- return 0;
+ if(lhs[i] != rhs[i])
return 1;
+ return 0;
}
template<int Size, class Accessor1, class Accessor2>
inline bool operator!=(const DynamicVector<Accessor1>& lhs, const
FixedVector<Size, Accessor2>& rhs){
assert(Size == lhs.size());
for(int i=0; i < Size; i++)
- if(lhs[i] == rhs[i])
- return 0;
+ if(lhs[i] != rhs[i])
return 1;
+ return 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Toon-members] TooN linoperators.hh,
Georg Klein <=