Git Product home page Git Product logo

Comments (6)

JamesYang007 avatar JamesYang007 commented on July 26, 2024 1

I've disabled higher-order derivatives for the time being. I have an idea of how to implement this for expressions involving only scalar variables, but have yet to figure out for multi-dimensional variables.

from fastad.

JamesYang007 avatar JamesYang007 commented on July 26, 2024 1

One of these days I'll have time to come back to this project T-T also, it's an honor to get a comment from the great Dirk of Rcpp!

from fastad.

JamesYang007 avatar JamesYang007 commented on July 26, 2024 1

The issue with exports with FastAD is that the expressions are fully compile-time based, meaning we cannot export atoms like log or sin and have R users build complex computation graphs using them; the full expression has to be known at compile-time. I went in with the current design knowing this limitation, thinking that the performance boost is worth the tradeoff. I'm not so sure anymore.. I was recently thinking of adding a separate support for a more dynamic approach so that I can actually do these exports.

from fastad.

eddelbuettel avatar eddelbuettel commented on July 26, 2024 1

Oh I wasn't even thinking from R, via AST and what not. I am quite fine with keeping it simple and compile-time only.

from fastad.

eddelbuettel avatar eddelbuettel commented on July 26, 2024

I like the Black-Scholes example, but one commonly wants gamma (= second derivative with respect to the current spot price). The Boost example has it too :-/

from fastad.

eddelbuettel avatar eddelbuettel commented on July 26, 2024

I saw the comment in your autoppl repo about 'R would be nice'. May make sense to put RcppFastAD onto CRAN as you can then simply depend on it (just as I quickly showed as 'proof-of-concept' to @CerulloE1996 that building a package around a header-only library is indeed easy (until you get to templating the converters to/from SEXP but we leave that for another day...)

from fastad.

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.