Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
write_model.hpp
Go to the documentation of this file.
1 #ifndef STAN__COMMON__WRITE_MODEL_HPP
2 #define STAN__COMMON__WRITE_MODEL_HPP
3 
4 #include <ostream>
5 #include <string>
6 
7 namespace stan {
8 
9  namespace common {
10 
11  void write_model(std::ostream* s,
12  const std::string model_name,
13  const std::string prefix = "") {
14  if (!s) return;
15 
16  *s << prefix << " model = " << model_name << std::endl;
17  }
18 
19 
20  } // namespace ui
21 
22 } // namespace stan
23 
24 #endif
void write_model(std::ostream *s, const std::string model_name, const std::string prefix="")
Definition: write_model.hpp:11

     [ Stan Home Page ] © 2011–2014, Stan Development Team.