Git Product home page Git Product logo

Comments (3)

nantonel avatar nantonel commented on August 17, 2024 1

If we decide to completey avoid pretty printing, it works fine for some sfuff:

julia> NormL1()
NormL1{Float64}(1.0)

but it's quite horrible in other cases:

julia> IndAffine(randn(3,3),randn(3))
ProximalOperators.IndAffineDirect{Float64,Float64,Array{Float64,2},Array{Float64,1},LinearAlgebra.QRCompactWY{Float64,Array{Float64,2}}}([0.7540902122955551 -0.5127888696402579 -0.41036024039021046; 0.3041711542264574 -0.8821531613533968 0.3595632195466501; -0.6471214161239671 0.7621617642057313 0.018528841747891156], [-0.38375757488811657, -1.3589036717591345, 0.7437271582522681], LinearAlgebra.QRCompactWY{Float64,Array{Float64,2}}([-1.0 -0.5341803635161604 0.8864194955698212; -0.2923389378982839 0.8453705336914357 -0.46016377902426897; -0.23394477519669718 -0.3748487888220175 -0.05009764812690726], [1.754090212295555 0.6294821130997797 0.0; 5.0e-324 1.753598976639561 0.0; 2.297204718e-314 2.2972047183e-314 0.0]), [2.1888445724e-314, 2.1885385205e-314, 2.1885430936e-314])

from proximaloperators.jl.

lostella avatar lostella commented on August 17, 2024

cc @nantonel @mfalt

from proximaloperators.jl.

nantonel avatar nantonel commented on August 17, 2024

Definitively agree we should simplify this:

julia> using ProximalOperators

julia> NormL1()
description : weighted L1 norm
domain      : AbstractArray{Real}, AbstractArray{Complex}
expression  : x  λ||x||_1
parameters  : λ = 1.0

We could have only the expression, something like:

julia> NormL1()
x  1.0 ||x||_1

or maybe even shorter:

julia> NormL1()
1.0 ||x||_1

from proximaloperators.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.