Boost logo

Boost :

Subject: Re: [boost] accurate sum accumulator (kahan)
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-07-27 12:17:18


>>> This would be ideal - but doesn't accumulator already use 'sum' so it
>>> would change behaviour of existing programs?
>>
>> Technically, of course it would, but aren't they getting the wrong answer
>> currently?
>
> I tend to agree with Dave, so long as the kahan sum accumulator is a
> drop-in replacement for what we already have. Does it Just Work for
> integral types, too?

It's not required for integral types as these don't suffer from cancelation
errors.

John.


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