-
Notifications
You must be signed in to change notification settings - Fork 33
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
#405 - Change intersection of two lines to set operation #408
Conversation
dc9ef1e
to
4122c24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @schillic
- Could we instead of
# results in LAPACKException or SingularException if parallel
return Singleton(a \ b)
catch
put
# results in LAPACKException or SingularException if parallel
return Singleton(a \ b)
catch y
if isa(y, LAPACKException) || isa(y, SingularException)
?
okay 👍 |
4b2d416
to
6fafb1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are 2 failing doctests in concrete_intersection.jl
.
for the one in LazySet.jl
, rebase with master will fix it.
points[n] = intersection(Line(P.constraints[n]), | ||
Line(P.constraints[1])) | ||
points[n] = element(intersection(Line(P.constraints[n]), | ||
Line(P.constraints[1]))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and (later) we can move one step further and add a convex_hull
that deals with a list of singletons (points), thus not needing these element(..)
. i think it would make the code a bit cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, we could add an iterator type over Singletons that returns their vectors, say, Singleton2Vector
, and pass Singleton2Vector(points)
to convex_hull
. However, if no convex hull shall be applied, we still need to unwrap them.
Very good! |
... ouch, that was unintended. |
can be undone with |
i lost your newer commits, sorry 😱 |
Hm? What did you do? |
|
So this was only the fix of the doctests, right? |
yes |
i mean locally you have some commits that are not online, right? |
Yep, I force-pushed again. |
Can we remove the "Changes requested" review without the "Dismiss review" button? |
in https://github.com/JuliaReach/LazySets.jl/pulls it now showsup as Approved. |
Closes #405.