Skip to content

Commit

Permalink
fix: usage of deprecated linear indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 29, 2023
1 parent a7e1943 commit a8d416a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ Calls `f` on each element of a vecvec `v`.
function vecvecapply(f, v)
sol = Vector{eltype(eltype(v))}()
for i in eachindex(v)
for j in eachindex(v[i])
push!(sol, v[i][j])
for j in eachindex(v[:, i])
push!(sol, v[:, i][j])
end
end
f(sol)
Expand Down

0 comments on commit a8d416a

Please sign in to comment.