Closed bbolker closed 1 year ago
You're right, thanks - the book looks awful... It's probably something with the versions of doxygen, knitr, bookdown...
Regarding TMBad/CppAD comparison there's nothing publicly available yet except the TMBad doxygen documentation.
A copy-paste from my private working document gives an idea of the similarities/differences:
FUSE
preprocessor flag. Otherwise it is dissabled. Operator compression not only reduces memory. It also makes the forward and reverse sweeps run faster because the fused operators can be better optimized by the compiler. The downside of on-the-fly compression is that it adds a small overhead while taping.ad_adapt
of the ad type enables comparison operators. Tapes generated using this type will automatically retape each new function evaluation. One can use both the normal ad type and the adaptive ad type within the same tape. The resulting tape will be hybrid in the sense that some parts of it automatically retapes while other parts are constant.x -> f(x) -> u -> f(x,u)
i.e. first comes fixed effects dependent sub expressions and then comes all the rest. When forward evaluating for given input (x,u) we loop through the joint vector from the left and find the first changed component. We keep a table that tells us which node to start from. DoneThis is great, thanks! As long as I'm asking, it would be interesting if there were a short (one-two sentence) of the overall vision/scope for TMBad; is this essentially a complete replacement for/alternative to CppAD? (It's very hard to keep up with the autodiff landscape if one is not an expert; https://www.autodiff.org is a good place to start, but I have no idea if it's kept up to date (the bibliography has lots up to 2021, but only one entry for 2022; it only includes one paper by you Bell and Kristensen 2018)).
Yes, TMBad is a complete replacement of the subset of CppAD used by TMB. Its purpose is to make TMB faster, simpler and more memory efficient. A standalone version of TMBad exists in a (currently) private repository which probably will become public in the future.
I'm closing this (thanks!), but will post a new issue about the book formatting so it stays on the list.
Looking a gift horse in the mouth ... Is there somewhere/could there be somewhere that documents/describes the differences between the TMBad and CppAD engines/how TMBad fits in?
Also, I think there may be something wrong with the book generation code: lots of weird HTML tags showing up ...