Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 65aa8ea0c2c869c03cf7d0914b55c10a > files > 2

libofa-0.9.3-8mdv2009.0.src.rpm

--- lib/JAMA/tnt_math_utils.h.orig
+++ lib/JAMA/tnt_math_utils.h
@@ -20,4 +20,14 @@
 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 
@@ -56,15 +66,6 @@
 }
 */
-
-/**
-	@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 */