Skip to content

Commit c7028c3

Browse files
authored
docs: add note
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 863307f commit c7028c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumpw

lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumpw/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ The function has the following parameters:
6464
## Notes
6565

6666
- If provided an empty one-dimensional ndarray, the function returns `0.0`.
67+
- In general, pairwise summation is more numerically stable than ordinary recursive summation (i.e., "simple" summation), with slightly worse performance. While not the most numerically stable summation technique (e.g., compensated summation techniques such as the Kahan–Babuška-Neumaier algorithm are generally more numerically stable), pairwise summation strikes a reasonable balance between numerical stability and performance. If either numerical stability or performance is more desirable for your use case, consider alternative summation techniques.
6768

6869
</section>
6970

0 commit comments

Comments
 (0)