Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 063b4a9050ec537f7d7e00a255381275 > files > 3

libofa-0.9.3-19.mga5.src.rpm

--- lib/JAMA/tnt_math_utils.h.build	2006-05-10 19:58:50.000000000 +0200
+++ lib/JAMA/tnt_math_utils.h	2010-01-17 21:21:47.000000000 +0100
@@ -19,6 +19,16 @@
 
 namespace TNT
 {
+
+/**
+	@returns the absolute value of a real (no-complex) scalar.
+*/
+template <class Real>
+Real abs(const Real &a)
+{
+	return  (a > 0 ? a : -a);
+}
+
 /**
 	@returns hypotenuse of real (non-complex) scalars a and b by 
 	avoiding underflow/overflow
@@ -55,16 +65,7 @@
 	return  a > b ? a : b;
 }
 */
-
-/**
-	@returns the absolute value of a real (no-complex) scalar.
-*/
-template <class Real>
-Real abs(const Real &a)
-{
-	return  (a > 0 ? a : -a);
 }
 
-}
 #endif
 /* MATH_UTILS_H */