Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is automatic sparse differentiation available in the R ecosystem. That's what the RTMB & TMB packages do.


That's really impressive! I can't even imagine implimenting sparsity tracing in a language as dynamic and hard to compile as R.


I think they do sparsity tracing and tape construction in C++ behind the scenes. RTMB does some wacky thing abusing complex values to let you write the function code in R and pass that off somehow.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: