Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy iteration over points #68

Open
ParadaCarleton opened this issue Dec 17, 2022 · 3 comments
Open

Lazy iteration over points #68

ParadaCarleton opened this issue Dec 17, 2022 · 3 comments

Comments

@ParadaCarleton
Copy link
Collaborator

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.

@ChrisRackauckas
Copy link
Member

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

@ChrisRackauckas
Copy link
Member

Is #85 sufficient @ParadaCarleton ?

@dmetivie
Copy link
Contributor

dmetivie commented Sep 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants