Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
libofa
> libofa-fix-proto-order.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libofa-fix-proto-order.patch of Package libofa
--- lib/JAMA/tnt_math_utils.h.orig 2006-10-30 16:36:18.000000000 +0100 +++ lib/JAMA/tnt_math_utils.h 2006-10-30 16:40:12.000000000 +0100 @@ -20,6 +20,15 @@ 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 using (a * sqrt( 1 + (b/a) * (b/a))), rather than @@ -56,15 +65,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 */