Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 701ab985210fb52263b6fd9410ed7c5d > files > 3

libofa-0.9.3-24.mga9.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 */