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:
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?


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,

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at