multiprecision max and et_on
16 Feb
2016
16 Feb
'16
6:16 p.m.
Hi Boost, I would like to be able to use the Eigen linear algebra library with Boost.Multiprecision with et_on. However, as noted here: https://svn.boost.org/trac/boost/ticket/11149 for max, et_on isn't compatible out of the box. Aside from writing my own little overload for max for the particular form being produced in my line of code from within Eigen, does anyone have a fix for enabling max with expression templates on? MWE: { using mpfr = boost::multiprecision::mpfr_float; // et_on by default, which is what i want using std::max; mpfr a(1), b(2), c(4); auto q = b*b+c; mpfr r = max(a,q); } Thanks a lot, Daniel
3207
Age (days ago)
3207
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniel Brake