Boost logo

Boost :

Subject: Re: [boost] [review] Multiprecision review (June 8th - 17th, 2012)
From: Marc Glisse (marc.glisse_at_[hidden])
Date: 2012-06-28 13:38:32


On Thu, 28 Jun 2012, Mario Mulansky wrote:

> My test case is to use floating point multiprecision types as the basis for
> our odeint library (www.odeint.com). As odeint is fully templatized I could
> just plug in, say, the cpp_dec_float_50 and the basic routines worked out of
> the box. The only problem I had was that there seems to be no support for min
> / max functions for expressions of multiprecision types. So can not write
>
> x = max( a+b , a*b )

x = max<cpp_dec_float_50>( a+b , a*b )
maybe?

(assuming they don't overload max for this library)

-- 
Marc Glisse

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk