Simple performance question from a newcomer

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 24 16:45:24 PST 2016


On 02/23/2016 12:12 PM, dextorious wrote:

 > Some languages
 > feature more accurate options separately, but never as the default, so
 > it did not occur to me to specifically check the documentation for
 > something like sum() (which is my fault, of course, no issues there).
 > Having the more accurate pairwise summation algorithm in the standard
 > library is certainly worthwhile for some applications, but I was a bit
 > surprised to see it as the default.

According to Wikipedia, pairwise summation is the default algorithm in 
NumPy and Julia as well:

"Pairwise summation is the default summation algorithm in NumPy and the 
Julia technical-computing language".

   https://en.wikipedia.org/wiki/Pairwise_summation

Ali



More information about the Digitalmars-d-learn mailing list