Giter VIP home page Giter VIP logo

Comments (7)

schillic avatar schillic commented on May 23, 2024 1

Julia's alias is called issubset (see here). This works out of the box.

from lazysets.jl.

schillic avatar schillic commented on May 23, 2024

Possibly helpful: Boolean operations on polygons

from lazysets.jl.

schillic avatar schillic commented on May 23, 2024

I would really like to have #58 here.
Now we have to provide

  • Hyperrectangle ⊆ Hyperrectangle
  • Hyperrectangle ⊆ BallInf
  • BallInf ⊆ Hyperrectangle
  • BallInf ⊆ BallInf
    and the algorithm is almost exactly the same except that BallInf's radius is a scalar.
    If instead we had a common supertype, we could have a function radius(dim) that returns the radius in a given dimension and thus write one function for all four cases (with no performance penalty).

from lazysets.jl.

schillic avatar schillic commented on May 23, 2024

The following table shows straight-forward implementations for most basic set types.
There might be more efficient implementations, but for the moment I am happy with any solution.
"v_i ∈ S" means "check containment of every vertex in set S"; here we need vertices_list and .

↓ ⊆ → Ball1 Ball2 Ballp Hyperrectangle/BallInf Polygon Singleton
Ball2 simple interval hull c = S & r = 0
Ballp interval hull c = S & r = 0
Ball1 v_i ∈ S v_i ∈ S v_i ∈ S v_i ∈ S v_i ∈ S c = S & r = 0
HR/BI v_i ∈ S v_i ∈ S v_i ∈ S box containment v_i ∈ S c = S & r = 0
Polygon v_i ∈ S v_i ∈ S v_i ∈ S v_i ∈ S v_i ∈ S v_i ∈ S
Singleton x ∈ S x ∈ S x ∈ S x ∈ S x ∈ S x ∈ S

from lazysets.jl.

schillic avatar schillic commented on May 23, 2024

I also want to get an optional witness if the answer is false. I will add this functionality on top.

from lazysets.jl.

schillic avatar schillic commented on May 23, 2024

I also want to get an optional witness if the answer is false. I will add this functionality on top.

Done.

from lazysets.jl.

schillic avatar schillic commented on May 23, 2024

Let us continue with the missing cases another time. I created #114 for this purpose.

from lazysets.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.