Statistics.jl
Statistics.jl copied to clipboard
Optimize `cov` and `cor` with identical arguments
When reviewing https://github.com/JuliaStats/StatsBase.jl/pull/923, I noticed that StatsBase uses a custom _cov function internally to improve performance of cov calls in pairwise invocations when both arguments of cov are identical. My feeling is that it would be better if such optimizations would be performed by Statistics.cov automatically.