Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/math/complex/fabs.hpp @ 118:770eb830ec19 emscripten
Typo fix
| author | Chris Cannam |
|---|---|
| date | Wed, 18 May 2016 16:14:08 +0100 |
| parents | 2665513ce2d3 |
| children |
| rev | line source |
|---|---|
| Chris@16 | 1 // (C) Copyright John Maddock 2005. |
| Chris@16 | 2 // Use, modification and distribution are subject to the |
| Chris@16 | 3 // Boost Software License, Version 1.0. (See accompanying file |
| Chris@16 | 4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| Chris@16 | 5 |
| Chris@16 | 6 #ifndef BOOST_MATH_COMPLEX_FABS_INCLUDED |
| Chris@16 | 7 #define BOOST_MATH_COMPLEX_FABS_INCLUDED |
| Chris@16 | 8 |
| Chris@16 | 9 #ifndef BOOST_MATH_HYPOT_INCLUDED |
| Chris@16 | 10 # include <boost/math/special_functions/hypot.hpp> |
| Chris@16 | 11 #endif |
| Chris@16 | 12 |
| Chris@16 | 13 namespace boost{ namespace math{ |
| Chris@16 | 14 |
| Chris@16 | 15 template<class T> |
| Chris@16 | 16 inline T fabs(const std::complex<T>& z) |
| Chris@16 | 17 { |
| Chris@16 | 18 return ::boost::math::hypot(z.real(), z.imag()); |
| Chris@16 | 19 } |
| Chris@16 | 20 |
| Chris@16 | 21 } } // namespaces |
| Chris@16 | 22 |
| Chris@16 | 23 #endif // BOOST_MATH_COMPLEX_FABS_INCLUDED |
