Skip to content

Commit

Permalink
modified arr_of_zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelnehrer02 committed Dec 21, 2023
1 parent 4b3f756 commit 4e7e53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ end

"""Creates an array of "Any" with the desired number of sub-arrays filled with zeros"""
function array_of_any_zeros(shape_list)
arr = Array{Array{Float64, 1}}(undef, length(shape_list))
arr = Array{Any}(undef, length(shape_list))
for (i, shape) in enumerate(shape_list)
arr[i] = zeros(Float64, shape)
arr[i] = zeros(Float64, shape...)
end
return arr
end
Expand Down

0 comments on commit 4e7e53f

Please sign in to comment.