Giter VIP home page Giter VIP logo

Comments (3)

schillic avatar schillic commented on May 23, 2024

Proposal (I am open for different names):

ZeroSet, Singleton <: SingleSet  # provide: element(dim), element
HPolygon, HPolygonOpt <: HPolygonal  # common: many methods
HPolygonal, VPolygon <: Polygonal  # provide: tovrep, tohrep; inherit: dim
SingleSet, BallInf, Hyperrectangle <: Box  # provide: radius_b(dim), radius_b
Ball, Box, Zonotope <: PointSymmetric <: LazySet  # provide: center; inherit: dim
Ball1, Box, Polygonal, Zonotope <: Polytopic <: LazySet  # provide: vertices_list
[SingleSet, Ball1, Ball2, Ballp, BallInf <: Ball] -- removed for simplicity

radius_b should not be confused with the existing radius for general LazySets.

from lazysets.jl.

schillic avatar schillic commented on May 23, 2024

Another possible extension is to have implementations for "centered in the origin" sets such as a Hyperrectangle0. These are more efficient to store and process (no center).
If we want this, we should introduce another layer of abstract types for each concrete type. Then we can provide different implementations for the same concepts. We already have this for HPolygon and HPolygonOpt.

We do not have to implement such sets right away, but with these changes this will be straight-forward to integrate them later.

from lazysets.jl.

schillic avatar schillic commented on May 23, 2024

Noooo, Julia does not support multiple supertypes (yet).

One can simulate multiple (abstract) supertypes with artificial combination types of course. Maybe I will just do that... 😈

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.