I have two questions w.r.t. the
cmdstan::command function interface.
I want to know if the
cmdstan::commandfunction in new Stan version (e.g. 2.20.0) supports input data from istringstream objects. This interface was implemented in very early versions, such as the function
int command(int argc, const char* argv, std::istringstream & ifs)in the file
stan/common/command.hppof the version 2.6.0. But I didn’t find a similar interface in 2.20.0. Do we have some other ways to read input from C++ stream objects instead of a file in the hard drive?
How could we suppress the stdout info in the
cmdstan::commandfunction in 2.20.0? Stdout prints some summary information of the model and sampling process. Although we can redirect stdout info to
/dev/nullin the Shell level. However, I want to find a solution when calling the
cmdstan::commandfunction. Thank you.
- Operating System: Ubuntu 18.04
- CmdStan Version: 2.20.0
- Compiler/Toolkit: g++ 7.4.0