multiprecision/test/test_eigen_interop_cpp_dec_float_2.cpp

23 lines
651 B
C++

///////////////////////////////////////////////////////////////////////////////
// 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)
#include <boost/multiprecision/cpp_dec_float.hpp>
#include "eigen.hpp"
template <>
struct related_number<boost::multiprecision::cpp_dec_float_100>
{
typedef boost::multiprecision::cpp_dec_float_50 type;
};
int main()
{
using namespace boost::multiprecision;
//test_float_type_2<double>();
test_float_type_2<boost::multiprecision::cpp_dec_float_100>();
return 0;
}