Skip to content

Commit bc88e65

Browse files
yakir12stevengj
authored andcommitted
Update Sobol.jl (#14)
needed a undef in initiating an empty array.
1 parent ae786f0 commit bc88e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sobol.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function skip!(s::SobolSeq, n::Integer, x)
9292
for unused=1:nskip; next!(s,x); end
9393
return nothing
9494
end
95-
Base.skip(s::SobolSeq, n::Integer) = skip!(s, n, Array{Float64,1}(ndims(s)))
95+
Base.skip(s::SobolSeq, n::Integer) = skip!(s, n, Array{Float64,1}(undef, ndims(s)))
9696

9797
function Base.show(io::IO, s::SobolSeq)
9898
print(io, "$(ndims(s))-dimensional Sobol sequence on [0,1]^$(ndims(s))")

0 commit comments

Comments
 (0)