QuasiMonteCarlo.jl icon indicating copy to clipboard operation
QuasiMonteCarlo.jl copied to clipboard

Lazy iteration over points

Open ParadaCarleton opened this issue 2 years ago • 3 comments

It's generally a lot better for performance to iterate lazily over QMC points, especially when the number of points is quite large. When users need the whole set, there's nothing stopping them from calling collect.

ParadaCarleton avatar Dec 17 '22 18:12 ParadaCarleton

Agreed. It would be nice to have an alternative to sample which returns an iterator for this.

ChrisRackauckas avatar Dec 18 '22 11:12 ChrisRackauckas

Is https://github.com/SciML/QuasiMonteCarlo.jl/pull/85 sufficient @ParadaCarleton ?

ChrisRackauckas avatar Sep 08 '23 12:09 ChrisRackauckas

I think what @ParadaCarleton had in mind is not for randomizing (which #85 do) but rather when sampling. Like this is actually done for Sobol points in Sobol.jl with the next! function.

dmetivie avatar Sep 08 '23 12:09 dmetivie