Hi all,
I have two questions w.r.t. the cmdstan::command
function interface.
-
I want to know if the
cmdstan::command
function 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 functionint command(int argc, const char* argv[], std::istringstream & ifs)
in the filestan/common/command.hpp
of 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::command
function in 2.20.0? Stdout prints some summary information of the model and sampling process. Although we can redirect stdout info to/dev/null
in the Shell level. However, I want to find a solution when calling thecmdstan::command
function. Thank you.
Environment info:
- Operating System: Ubuntu 18.04
- CmdStan Version: 2.20.0
- Compiler/Toolkit: g++ 7.4.0