
28 Jun
2012
28 Jun
'12
5:38 p.m.
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