Fix doc comment for sumKbn (#15769)
Co-authored-by: b3liever <b3liever@yandex.com>
This commit is contained in:
parent
87a60c1b28
commit
912d8f80ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue