-
Notifications
You must be signed in to change notification settings - Fork 51
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
Best way to calculate set intersection/set difference for a set represented as vector of interval vectors #513
Comments
You should have a look to Ibex sets, which already implement those set operations in a clever way |
Gilles, Thanks! I've been looking at using sets, and they appear to generally do what I'd like, but I'm unsure of how to actually convert the std::vectoribex::IntervalVector into a set object. Also, I see the set intersection operation but I don't see an explicit way to do a set difference. Cheers |
Oh yes, I thought I had implemented the set difference but apparently, no. Sorry, it was 7 years ago :) |
Thank you, I'll give that a try! |
Hi Gilles, I tried using your approach to iteratively create a set from a vector of boxes starting from the empty set and then iteratively applying the union operation, and I've run into the issue where I'm unable to get all the way through the list of boxes before getting a "segmentation fault (core dumped)" error, which I suspect has to do with the size/dimension of the boxes in the list. Do you have any alternate suggestions as to how to proceed? |
Hi,
I have a custom solver implemented which returns a series of sets each represented as a std::vectoribex::IntervalVector containing the inside boxes for the given set. I was wondering what the most efficient way to take the set intersection and set difference between multiple sets would be, given this starting format.
Thanks!
The text was updated successfully, but these errors were encountered: