On May 3, 7:05 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > On May 3, 10:13 pm, hdante <[EMAIL PROTECTED]> wrote: > > > I believe that moving this to third party could be better. What about > > numpy ? Doesn't it already have something similar ? > > Yes, Kahan summation makes sence for numpy arrays. But the problem > with this algorithm is optimizing compilers. The programmer will be
No, optimizing compilers shouldn't discard floating point operations by default, since it changes program behavior. If they do, at least there should be a flag to turn it off. > forced to use tricks like inline assembly to get around the optimizer. > If not, the optimizer would remove the desired features of the > algorithm. But then we have a serious portability problem. -- http://mail.python.org/mailman/listinfo/python-list