Skip to content

Commit 32b2707

Browse files
Merge pull request #18 from JuliaSIMD/vcov-fix
Fix variable name typo in `vcov` and `vcor`
2 parents c19f4ba + 3e4490a commit 32b2707

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VectorizedStatistics"
22
uuid = "3b853605-1c98-4422-8364-4bd93ee0529e"
33
authors = ["C. Brenhin Keller", "Chris Elrod"]
4-
version = "0.4.4"
4+
version = "0.4.5"
55

66
[deps]
77
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"

src/vcov.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ If `corrected` is `true` as is the default, _Bessel's correction_ will be applie
6161
such that the sum is scaled by `n-1` rather than `n`, where `n = length(x)`.
6262
"""
6363
function vcov(X::AbstractMatrix; dims::Int=1, corrected::Bool=true, multithreaded=:auto)
64-
if (multithreaded===:auto && length(A) > 4095) || multithreaded===true
64+
if (multithreaded===:auto && length(X) > 4095) || multithreaded===true
6565
_vtcov(X, dims, corrected)
6666
else
6767
_vcov(X, dims, corrected)
@@ -183,7 +183,7 @@ along dimension `dims`. As `Statistics.cor`, but vectorized and (optionally)
183183
multithreaded.
184184
"""
185185
function vcor(X::AbstractMatrix; dims::Int=1, corrected::Bool=true, multithreaded=:auto)
186-
if (multithreaded===:auto && length(A) > 4095) || multithreaded===true
186+
if (multithreaded===:auto && length(X) > 4095) || multithreaded===true
187187
_vtcor(X, dims, corrected)
188188
else
189189
_vcor(X, dims, corrected)

0 commit comments

Comments
 (0)