1 #ifndef STAN_SERVICES_IO_DO_PRINT_HPP
2 #define STAN_SERVICES_IO_DO_PRINT_HPP
25 bool do_print(
const int n,
const bool special,
const int refresh) {
26 return (refresh > 0) &&
27 (special || n == 0 || ((n + 1) % refresh == 0) );
43 bool do_print(
const int n,
const int refresh) {
Probability, optimization and sampling library.
bool do_print(const int n, const bool special, const int refresh)
Indicates whether it should print on the current iteration.