summary refs log tree commit diff stats
path: root/lib/std/sums.nim
diff options
context:
space:
mode:
authorAntonis Geralis <43617260+planetis-m@users.noreply.github.com>2020-10-29 18:54:28 +0200
committerGitHub <noreply@github.com>2020-10-29 17:54:28 +0100
commit912d8f80ad5782ee371376f9f5664af3ac21995e (patch)
tree24ef1bd9cec68e35434ed80627158c0464d86fa4 /lib/std/sums.nim
parent87a60c1b28a777e35701c2f934fc1361818a216e (diff)
downloadNim-912d8f80ad5782ee371376f9f5664af3ac21995e.tar.gz
Fix doc comment for sumKbn (#15769)
Co-authored-by: b3liever <b3liever@yandex.com>
Diffstat (limited to 'lib/std/sums.nim')
-rw-r--r--lib/std/sums.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/sums.nim b/lib/std/sums.nim
index a48360180..0f8c5ebfb 100644
--- a/lib/std/sums.nim
+++ b/lib/std/sums.nim
@@ -10,7 +10,7 @@
 
 
 func sumKbn*[T](x: openArray[T]): T =
-  ## Kahan (compensated) summation: O(1) error growth, at the expense
+  ## Kahan-Babuška-Neumaier summation: O(1) error growth, at the expense
   ## of a considerable increase in computational expense.
   if len(x) == 0: return
   var sum = x[0]
oc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
import t9578

proc testOpenArray*(x: var openArray[mytype]) =
  f(x[0].addr)