test_eigen_interop_cpp_dec_float_2.cpp 651 B

12345678910111213141516171819202122
  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. #include <boost/multiprecision/cpp_dec_float.hpp>
  6. #include "eigen.hpp"
  7. template <>
  8. struct related_number<boost::multiprecision::cpp_dec_float_100>
  9. {
  10. typedef boost::multiprecision::cpp_dec_float_50 type;
  11. };
  12. int main()
  13. {
  14. using namespace boost::multiprecision;
  15. //test_float_type_2<double>();
  16. test_float_type_2<boost::multiprecision::cpp_dec_float_100>();
  17. return 0;
  18. }