You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> Q =Hyperrectangle(low=[-10., -10.], high=[0., 10]); # contains the intersection of H and G
julia>@btimeintersection($Q, $H)
108.345 ns (5 allocations:416 bytes)
Hyperrectangle{Float64,Array{Float64,1},Array{Float64,1}}([-1.907573076247182, -0.8011047849004616], [1.907573076247182, 1.2955065044055676])
Note that by using single entry vectors, with the signature intersection(::HalfSpace{N, <:SingleEntryVector{N}}, ::AbstractHyperrectangle{N}), we are able to dispatch on axis-aligned halfspaces, so no run-time checks are needed.
The text was updated successfully, but these errors were encountered:
The intersection between a hyperrectangular set and an axis-aligned halfspace is currently slow:
Compare with:
Note that by using single entry vectors, with the signature
intersection(::HalfSpace{N, <:SingleEntryVector{N}}, ::AbstractHyperrectangle{N})
, we are able to dispatch on axis-aligned halfspaces, so no run-time checks are needed.The text was updated successfully, but these errors were encountered: