Chris@16: // (C) Copyright John Maddock 2005. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #ifndef BOOST_MATH_COMPLEX_FABS_INCLUDED Chris@16: #define BOOST_MATH_COMPLEX_FABS_INCLUDED Chris@16: Chris@16: #ifndef BOOST_MATH_HYPOT_INCLUDED Chris@16: # include Chris@16: #endif Chris@16: Chris@16: namespace boost{ namespace math{ Chris@16: Chris@16: template Chris@16: inline T fabs(const std::complex& z) Chris@16: { Chris@16: return ::boost::math::hypot(z.real(), z.imag()); Chris@16: } Chris@16: Chris@16: } } // namespaces Chris@16: Chris@16: #endif // BOOST_MATH_COMPLEX_FABS_INCLUDED