1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/math/complex/fabs.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,23 @@
1.4 +// (C) Copyright John Maddock 2005.
1.5 +// Use, modification and distribution are subject to the
1.6 +// Boost Software License, Version 1.0. (See accompanying file
1.7 +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
1.8 +
1.9 +#ifndef BOOST_MATH_COMPLEX_FABS_INCLUDED
1.10 +#define BOOST_MATH_COMPLEX_FABS_INCLUDED
1.11 +
1.12 +#ifndef BOOST_MATH_HYPOT_INCLUDED
1.13 +# include <boost/math/special_functions/hypot.hpp>
1.14 +#endif
1.15 +
1.16 +namespace boost{ namespace math{
1.17 +
1.18 +template<class T>
1.19 +inline T fabs(const std::complex<T>& z)
1.20 +{
1.21 + return ::boost::math::hypot(z.real(), z.imag());
1.22 +}
1.23 +
1.24 +} } // namespaces
1.25 +
1.26 +#endif // BOOST_MATH_COMPLEX_FABS_INCLUDED