Skip to content

Commit a8d416a

Browse files
fix: usage of deprecated linear indexing
1 parent a7e1943 commit a8d416a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ Calls `f` on each element of a vecvec `v`.
177177
function vecvecapply(f, v)
178178
sol = Vector{eltype(eltype(v))}()
179179
for i in eachindex(v)
180-
for j in eachindex(v[i])
181-
push!(sol, v[i][j])
180+
for j in eachindex(v[:, i])
181+
push!(sol, v[:, i][j])
182182
end
183183
end
184184
f(sol)

0 commit comments

Comments
 (0)