toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] TooN gaussian_elimination.h


From: Edward Rosten
Subject: [Toon-members] TooN gaussian_elimination.h
Date: Fri, 25 Sep 2009 14:45:26 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Edward Rosten <edrosten>        09/09/25 14:45:26

Modified files:
        .              : gaussian_elimination.h 

Log message:
        Fix bad use of abs

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/gaussian_elimination.h?cvsroot=toon&r1=1.8&r2=1.9

Patches:
Index: gaussian_elimination.h
===================================================================
RCS file: /cvsroot/toon/TooN/gaussian_elimination.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- gaussian_elimination.h      9 Jun 2009 13:33:22 -0000       1.8
+++ gaussian_elimination.h      25 Sep 2009 14:45:26 -0000      1.9
@@ -33,6 +33,7 @@
 #define GAUSSIAN_ELIMINATION_H
 
 #include <utility>
+#include <cmath>
 #include <TooN/TooN.h>
 
 namespace TooN {
@@ -43,6 +44,7 @@
     template<int N, typename Precision>
        inline Vector<N, Precision> gaussian_elimination (Matrix<N,N,Precision> 
A, Vector<N, Precision> b) {
                using std::swap;
+               using std::abs;
 
                int size=b.size();
 
@@ -104,6 +106,7 @@
     template<int R1, int C1, int R2, int C2, typename Precision>
        inline Matrix<Internal::Size3<R1, C1, R2>::s, C2, Precision> 
gaussian_elimination (Matrix<R1,C1,Precision> A, Matrix<R2, C2, Precision> b) {
                using std::swap;
+               using std::abs;
                SizeMismatch<R1, C1>::test(A.num_rows(), A.num_cols());
                SizeMismatch<R1, R2>::test(A.num_rows(), b.num_rows());
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]