←back to thread

49 points melenaboija | 1 comments | | HN request time: 0.199s | source
1. encypruon ◴[] No.41853508[source]
> dot += A[i] * B[i];

Isn't it pretty bad for accuracy to accumulate large numbers of floats in this fashion? o.O In the example it's 640,000 numbers. log2(640,000) is ~19.3 but the significand of a float has only 23 bits plus an implicit one.