Boost logo

Boost Users :

Subject: [Boost-users] multiprecision max and et_on
From: Daniel Brake (danielthebrake_at_[hidden])
Date: 2016-02-16 13:16:40


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net