Coder Social home page Coder Social logo

Comments (6)

ilan-gold avatar ilan-gold commented on July 23, 2024 1

At long last

from torchquad.

ilan-gold avatar ilan-gold commented on July 23, 2024 1

Also I have spoken to @WWXkenmo - I can help him IRL if he wants but what he wants to do is now possible via an API.

from torchquad.

gomezzz avatar gomezzz commented on July 23, 2024

Hi @WWXkenmo thanks for reaching out!

Yes, it is definitely related to #160 , I don't think it is yet support but implementing it should be quite manageable, I think. Would you be interested in implementing it?

@ilan-gold you are probably better qualified to answer this in general than me, what are your thoughts on this? :)

from torchquad.

WWXkenmo avatar WWXkenmo commented on July 23, 2024

Hi,

After working on code today, I think I have figure out this issue, it could be easily down by Integration by substitution.
that is, for n th function (domain), we could represent the t_n as t*t_scale_n + t0_n, in which t_scale_n = t_n - t0_n, so, for every t_n, we substitute as the function of t, then we could use a fixed domain for t ([0, 1]), and each domain would be specific by the index ([t0_n, t_n]). But be aware of the rule of integration, the integrand need to multiply the t_scale_n, but t_scale_n and t0_n now could be the new parameter, which is feasible using current vectorised method #160.

It could be down externally, but it also could be integrated in the module. I would glad to help, but maybe in the next week?

Best,
Ken

from torchquad.

ilan-gold avatar ilan-gold commented on July 23, 2024

@WWXkenmo If I understand you correctly, I think I have an identical use-case. I wrote a custom integrator and it works very well. @gomezzz If I understand @WWXkenmo correctly, I would be happy to contribute what I have. Basically, it lets you change the domain of integration for each of the vectorized integrands. If this is not something we want to support, then I can just make the changes that let me build this custom integrator and send @WWXkenmo the code separately.

from torchquad.

gomezzz avatar gomezzz commented on July 23, 2024

@ilan-gold can be closed now, I think, right? :)

from torchquad.

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.