Implementing Sparse Vectors With Associative Arrays/Compiler Bug?

Danny Arends Danny.Arends at gmail.com
Sun Mar 10 05:11:40 PDT 2013


You could also try to use a Kahan Accumulator to 'fix' this 
problem.

See wikipedia: 
http://en.wikipedia.org/wiki/Kahan_summation_algorithm

Its pretty straight forward to implement.

Gr,
Danny Arends
http://www.dannyarends.nl


More information about the Digitalmars-d mailing list