Git Product home page Git Product logo

Comments (4)

dham avatar dham commented on July 29, 2024 1

I believe we can close this issue. Executing ReducedFunctional.derivative(options={"riesz_representation": self.inner_product}) results in a Cofunction. Feel free to reopen the issue if anyone has valid arguments against its closure.

Don't you mean: ReducedFunctional.derivative(options={"riesz_representation": None})

from firedrake.

dham avatar dham commented on July 29, 2024

I think we're doing what the pyadjoint API tells us to do. You can plausibly claim that the pyadjoint API is not well throught through, because having ReducedFunctional.derivative return a gradient, which is what it requires, is dumb. I have a lot of sympathy with that. However that API has actual users, so any change requires serious work.

from firedrake.

jrmaddison avatar jrmaddison commented on July 29, 2024

It seems to be standard for the gradient to be defined in the primal space (although gradient covectors are used in differential geometry). However for the derivative it should definitely be in the dual space. The workaround is easy, by accessing the adj_vector attribute after running the adjoint.

Since this isn't exactly a bug, it can be closed?

from firedrake.

Ig-dolci avatar Ig-dolci commented on July 29, 2024

I believe we can close this issue. Executing ReducedFunctional.derivative(options={"riesz_representation": None}) results in a Cofunction. Feel free to reopen the issue if anyone has valid arguments against its closure.

from firedrake.

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.