We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae786f0 commit bc88e65Copy full SHA for bc88e65
src/Sobol.jl
@@ -92,7 +92,7 @@ function skip!(s::SobolSeq, n::Integer, x)
92
for unused=1:nskip; next!(s,x); end
93
return nothing
94
end
95
-Base.skip(s::SobolSeq, n::Integer) = skip!(s, n, Array{Float64,1}(ndims(s)))
+Base.skip(s::SobolSeq, n::Integer) = skip!(s, n, Array{Float64,1}(undef, ndims(s)))
96
97
function Base.show(io::IO, s::SobolSeq)
98
print(io, "$(ndims(s))-dimensional Sobol sequence on [0,1]^$(ndims(s))")
0 commit comments