Skip to content

Commit

Permalink
Replaced eachcol
Browse files Browse the repository at this point in the history
  • Loading branch information
theogf committed Oct 26, 2020
1 parent cbec7d1 commit 266d521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_dists.jl
Expand Up @@ -504,8 +504,8 @@ function test_pairwise(dist, x, y, T)
for j = 1:nx, i = 1:nx
rxx[i, j] = dist(x[:, i], x[:, j])
end
vecx = collect(eachcol(x))
vecy = collect(eachcol(y))
vecx = collect(x[:, i] for i in 1:nx)
vecy = collect(y[:, i] for i in 1:ny)
# As earlier, we have small rounding errors in accumulations
@test pairwise(dist, x, y, dims=2) rxy
@test pairwise(dist, x, dims=2) rxx
Expand Down

0 comments on commit 266d521

Please sign in to comment.