/////////////////////////////////////////////////////////////////////////////// // Copyright 2018 John Maddock. Distributed under 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 BOOST_MP_CPP_COMPLEX_HPP #define BOOST_MP_CPP_COMPLEX_HPP #include #include namespace boost { namespace multiprecision { #ifndef BOOST_NO_CXX11_TEMPLATE_ALIASES template using cpp_complex_backend = complex_adaptor >; template using cpp_complex = number >, ExpressionTemplates>; typedef cpp_complex<50> cpp_complex_50; typedef cpp_complex<100> cpp_complex_100; typedef cpp_complex<24, backends::digit_base_2, void, boost::int16_t, -126, 127> cpp_complex_single; typedef cpp_complex<53, backends::digit_base_2, void, boost::int16_t, -1022, 1023> cpp_complex_double; typedef cpp_complex<64, backends::digit_base_2, void, boost::int16_t, -16382, 16383> cpp_complex_extended; typedef cpp_complex<113, backends::digit_base_2, void, boost::int16_t, -16382, 16383> cpp_complex_quad; typedef cpp_complex<237, backends::digit_base_2, void, boost::int32_t, -262142, 262143> cpp_complex_oct; #else typedef number >, et_off> cpp_complex_50; typedef number >, et_off> cpp_complex_100; typedef number >, et_off> cpp_complex_single; typedef number >, et_off> cpp_complex_double; typedef number >, et_off> cpp_complex_extended; typedef number >, et_off> cpp_complex_quad; typedef number >, et_off> cpp_complex_oct; #endif } } // namespace boost::multiprecision #endif