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