Code Monkey home page Code Monkey logo

Comments (4)

sethaxen avatar sethaxen commented on September 17, 2024

It probably makes sense for these bijectors to return a Factorization object but for their inverses to accept not only a Factorization but also an iterable of the factors. e.g. for unique QR, one needs to implement a new QR Factorization as well as an AbstractQ to enforce the sign convention. Since these might be of general interest, maybe it makes sense to make a UniqueFactorizations.jl package that only depends on LinearAlgebra, which could then be used in these bijectors.

from bijectors.jl.

sethaxen avatar sethaxen commented on September 17, 2024

Or does it make more sense to in an extension to a UniqueFactorizations.jl package, overload the Bijectors interface for functions like UniqueFactorizations.qr? Is there anything in Bijectors expecting all bijectors are a Bijectors.Bijector subtype?

from bijectors.jl.

sethaxen avatar sethaxen commented on September 17, 2024

@torfjelde @devmotion what do you think?

from bijectors.jl.

torfjelde avatar torfjelde commented on September 17, 2024

Is there anything in Bijectors expecting all bijectors are a Bijectors.Bijector subtype?

Not really:) It really only lets you have a default implementation for stuff like inverse (which returns the lazy Bijectors.Inverse bijector).

You probably don't even need an extension (unless you want to hook it up to Distributions.jl using stuff like bijector); implementation of ChangesOfVariables.with_logabsdet_jacobian and InverseFunctions.inverse is sufficient to make it possible to use it with Bijectors.jl (but, as mentioned, for hooking into Distributions.jl, an extension might be the way to go).

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