complex128.hpp 707 B

1234567891011121314151617181920212223242526
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Copyright 2018 John Maddock. Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_MP_COMPLEX128_HPP
  6. #define BOOST_MP_COMPLEX128_HPP
  7. #include <boost/multiprecision/float128.hpp>
  8. #include <boost/multiprecision/complex_adaptor.hpp>
  9. namespace boost {
  10. namespace multiprecision {
  11. typedef number<complex_adaptor<float128_backend>, et_off> complex128;
  12. template <>
  13. struct component_type<number<complex_adaptor<float128_backend> > >
  14. {
  15. typedef float128 type;
  16. };
  17. }
  18. } // namespace boost::multiprecision
  19. #endif