1 #ifndef STAN__COMMON__PRINT_PROGRESS_HPP
2 #define STAN__COMMON__PRINT_PROGRESS_HPP
18 const std::string prefix,
19 const std::string suffix,
22 if (
do_print(m, (start + m + 1 == finish), refresh)) {
25 o << std::setw(it_print_width) << m + 1 + start
27 o <<
" [" << std::setw(3)
28 <<
static_cast<int>( (100.0 * (start + m + 1)) / finish )
30 o << (warmup ?
" (Warmup)" :
" (Sampling)");
bool do_print(const int n, const bool special, const int refresh)
Indicates whether it should print on the current iteration.
fvar< T > ceil(const fvar< T > &x)
void warmup(stan::mcmc::base_mcmc *sampler, int num_warmup, int num_samples, int num_thin, int refresh, bool save, stan::io::mcmc_writer< Model, SampleRecorder, DiagnosticRecorder, MessageRecorder > &writer, stan::mcmc::sample &init_s, Model &model, RNG &base_rng, const std::string &prefix, const std::string &suffix, std::ostream &o, StartTransitionCallback &callback)
void print_progress(const int m, const int start, const int finish, const int refresh, const bool warmup, const std::string prefix, const std::string suffix, std::ostream &o)
fvar< T > log10(const fvar< T > &x)