[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN gauss_jordan.h
From: |
Georg Klein |
Subject: |
[Toon-members] TooN gauss_jordan.h |
Date: |
Fri, 15 May 2009 16:00:00 +0000 |
CVSROOT: /sources/toon
Module name: TooN
Changes by: Georg Klein <georgklein> 09/05/15 16:00:00
Modified files:
. : gauss_jordan.h
Log message:
Added missing std::abs - otherwise it uses abs(int)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/gauss_jordan.h?cvsroot=toon&r1=1.5&r2=1.6
Patches:
Index: gauss_jordan.h
===================================================================
RCS file: /sources/toon/TooN/gauss_jordan.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- gauss_jordan.h 15 Apr 2009 15:50:32 -0000 1.5
+++ gauss_jordan.h 15 May 2009 16:00:00 -0000 1.6
@@ -32,6 +32,7 @@
#define TOON_INC_GAUSS_JORDAN_H
#include <utility>
+#include <cmath>
#include <TooN/TooN.h>
namespace TooN
@@ -63,6 +64,7 @@
//and swap the indirection element. This holds for both pointer
indirection
//and using a permutation vector over rows.
{
+ using std::abs;
int pivotpos = col;
double pivotval = abs(m[pivotpos][col]);
for(int p=col+1; p <m.num_rows(); p++)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Toon-members] TooN gauss_jordan.h,
Georg Klein <=