Giter VIP home page Giter VIP logo

Comments (7)

mforets avatar mforets commented on May 25, 2024 1

+1 element, and +1.5 for an_element

from lazysets.jl.

mforets avatar mforets commented on May 25, 2024 1

ok.

What is an argument for this?

only that it goes in line with other files for abstract types such as Abstractxyz.

for the implementation we can take as well σ([1.; fill(0, dim(S)-1)], S) which has more zeros 😛 or σ(speye(dim(S))[:, 1], S)

from lazysets.jl.

schillic avatar schillic commented on May 25, 2024

I will use element, which is consistent with the function of AbstractSingleton.

from lazysets.jl.

schillic avatar schillic commented on May 25, 2024

@mforets: Should we add a default implementation for any LazySet as follows?

function an_element(S::LazySet)::Vector{<:Real}
    return σ(ones(dim(S)), S)
end

Problem: the direction has type Float.
If yes, where do we put this? Create a new file LazySet_functions.jl? Or a file LazySet.jl and move the type definition there as well?
There are already norm/radius/diameter in box_approximations.jl, so maybe we want to move those to this file, too.

from lazysets.jl.

mforets avatar mforets commented on May 25, 2024

Problem: the direction has type Float.

this could be worked around if #44 gets in.

If yes, where do we put this?

also note the file support_function.jl, which just defines generic support vector for any LazySet. a file LazySet.jl for this group of definitions is not a bad idea.

from lazysets.jl.

mforets avatar mforets commented on May 25, 2024

.. or a file AbstractLazySet.jl , and in that case also export the type AbstractLazySet as an alias for LazySet. i'm ok with either way, what do you think?

from lazysets.jl.

schillic avatar schillic commented on May 25, 2024

this could be worked around if # 44 gets in.

Good, then let us fix that one first.

a file LazySet.jl for this group of definitions is not a bad idea.

I also like this.

or a file AbstractLazySet.jl

What is an argument for this? (We can also rename the file later and just need to change one line.)

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.