Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve numerical stability of
cov
(#85)
`cov(::AbstractVector, ::AbstractVector)` was less stable than other `cov` methods and than `var` on arrays as it called `sum` on a generator, which does not use pairwise summation. Use `dot` instead, which is also faster, and was used before 7deac81, where it was removed to be able to move LinearAlgebra to a separate package (when statistics.jl was in Base).
- Loading branch information