Giter VIP home page Giter VIP logo

Comments (6)

YingboMa avatar YingboMa commented on May 10, 2024

Nope, we now use ODEFunction.

from parameterizedfunctions.jl.

jebej avatar jebej commented on May 10, 2024

Ok, so if I was using my own Parameterized function type, I need to adopt the ODEFunction interface, and instead subtype AbstractODEFunction?

from parameterizedfunctions.jl.

YingboMa avatar YingboMa commented on May 10, 2024

from parameterizedfunctions.jl.

jebej avatar jebej commented on May 10, 2024

The usecase is solving a Quantum Liouvillian, where the operators are sparse and complex, and I use the 5-arg mul! to have everything in place because I also need to evaluate time-dependent user functions as coefficients for some of the operators (see here).

As far as I can tell, none of the pre-existing solutions work for this, which is why I made my own type.

from parameterizedfunctions.jl.

jebej avatar jebej commented on May 10, 2024

I'd like to talk more about getting this to work if you'd have the time,

w.r.t. this issue, it seems like ParameterizedFunctions are on the way out and that the (p::LotkaVolterra)(::Type{Val{:jac}},t,u,J) syntax is not supported anymore. Is that correct?

In case it matters, it would be nice to still support it, for those who like me are using functor types. With functor types, it is impossible to define a function in the jac field, because the function would itself depends on the instance of the functor...

from parameterizedfunctions.jl.

ChrisRackauckas avatar ChrisRackauckas commented on May 10, 2024

w.r.t. this issue, it seems like ParameterizedFunctions are on the way out and that the (p::LotkaVolterra)(::Type{Val{:jac}},t,u,J) syntax is not supported anymore. Is that correct?

Yes, that's been gone for awhile.

In case it matters, it would be nice to still support it, for those who like me are using functor types. With functor types, it is impossible to define a function in the jac field, because the function would itself depends on the instance of the functor...

You can define an ODEFunction and add your own jac

The usecase is solving a Quantum Liouvillian, where the operators are sparse and complex, and I use the 5-arg mul! to have everything in place because I also need to evaluate time-dependent user functions as coefficients for some of the operators (see here).

That's fine with MTK.

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