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. using complex128 = number<complex_adaptor<float128_backend>, et_off>;
  12. template <>
  13. struct component_type<number<complex_adaptor<float128_backend> > >
  14. {
  15. using type = float128;
  16. };
  17. }
  18. } // namespace boost::multiprecision
  19. #endif