Hi Dev team,
I am digging around in the stan math library to use in some software that I work on. The program does non-linear optimisation and already has multiple autodiff libraries e.g. adolc (https://projects.coin-or.org/ADOL-C).
We use boost’s lexical cast to assign values to objects (I guess in the case for Stan that is var.vi_->val_) from files. I see in (https://github.com/stan-dev/math/blob/develop/stan/math/rev/core/var.hpp) you have overloaded the ostream << operator, I was wondering if there is a reason why you haven’t overloaded the istream >> operator? would this be easy? I am not having much luck.
My C++ isn’t great but I am hoping to get Stan into this software for my PhD so any advice would be greatly appreciated.
That was what I was after, thanks for that. If I want to maintain a version of stan with some modified classes, like this example. Do you have any tips or advice on how to best achieve it so that the repo keeps up to date but has modifications that don’t want to be included to the master?
Maintaining a branch is easiest. Then git pull brings in the latest branch. I’d branch from master so you only get official updates, but you could also branch from develop if you want to keep up with the development branch (which eventually gets promoted to master).
If it’s just things like >> opertors to math << operators, we can just add those to Stan.