From a8d416a76d593817bce138c973e305edb205c03f Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Fri, 29 Dec 2023 18:54:30 +0530 Subject: [PATCH] fix: usage of deprecated linear indexing --- src/utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index c59a9710..d9c1585a 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -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)