diff -Naur libofa-0.9.3/lib/JAMA/tnt_math_utils.h libofa-0.9.3-p/lib/JAMA/tnt_math_utils.h --- libofa-0.9.3/lib/JAMA/tnt_math_utils.h 2006-05-10 19:58:50.000000000 +0200 +++ libofa-0.9.3-p/lib/JAMA/tnt_math_utils.h 2006-07-09 16:34:43.000000000 +0200 @@ -19,6 +19,17 @@ namespace TNT { + +/** + @returns the absolute value of a real (no-complex) scalar. +*/ + +template +Real abs(const Real &a) +{ + return (a > 0 ? a : -a); +} + /** @returns hypotenuse of real (non-complex) scalars a and b by avoiding underflow/overflow @@ -56,14 +67,6 @@ } */ -/** - @returns the absolute value of a real (no-complex) scalar. -*/ -template -Real abs(const Real &a) -{ - return (a > 0 ? a : -a); -} } #endif