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

EventWorkspace: iterator to go through all events (?) #3031

Closed
mantid-builder opened this issue Dec 29, 2010 · 1 comment
Closed

EventWorkspace: iterator to go through all events (?) #3031

mantid-builder opened this issue Dec 29, 2010 · 1 comment
Labels
Low Priority Things that you don't ever want to be done.
Milestone

Comments

@mantid-builder
Copy link
Collaborator

Original Reporter: @jzikovsky

Original Owner: @jzikovsky

Will allow operations (weights, etc.) to be applied to all events in a single loop.

A forward iterator would be the quickest ( O(1) to go forward ). But it is not possible to parallelize a forward iterator with OpenMP.

If made a random-access iterator, then you could do a OpenMP for loop; but unfortunately each access will have complexity ( O(log M) ) where M is the number of spectra.

Therefore, a mix of both methods might be necessary - split into X ForwardIterators that operate in parallel, where X is the number of available cores?

@mantid-builder
Copy link
Collaborator Author

This issue was originally trac ticket 2184

@mantid-builder mantid-builder added Low Priority Things that you don't ever want to be done. Mantid labels Jun 3, 2015
@mantid-builder mantid-builder added this to the Iteration 27 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low Priority Things that you don't ever want to be done.
Projects
None yet
Development

No branches or pull requests

1 participant