3 ms·
Kahan summing doesn't fix cancellation error. It just extends the precision by another 53-bits or so. The only way you fix cancellation error is summing the po
by dragontamer 3y ago
Kahan summing doesn't fix cancellation error. It just extends the precision by another 53-bits or so.
The only way you fix cancellation error is summing the positives in one variable, and the negatives in another, and do a big cancellation at the end.
Anyway, my overall point is not to criticize Kahan summing or other techniques. My point is that these techniques are incompatible with optimizations. The faster way is often times a less stable operation.