Definition at line 207 of file comp-res.cpp.
208{
209 int *a = ar->array;
210 int total_sum = 0;
211 int lo = a[0];
212 int hi = a[1];
213 int len = a[2] + 1;
214 o << "total ";
215 for (int lev = 0; lev < len; lev++)
216 {
218 for (int d = lo; d <= hi; d++) sum += a[len * (d - lo) + lev + 3];
221 o << ' ';
222 }
223 o <<
" [" << total_sum <<
"]" <<
newline;
224 for (int d = lo; d <= hi; d++)
225 {
227 o << ": ";
228 for (int lev = 0; lev < len; lev++)
229 {
230 int c = a[len * (d - lo) + lev + 3];
231 if (c != 0)
233 else
234 o << " -";
235 o << " ";
236 }
238 }
239}
const mpreal sum(const mpreal tab[], const unsigned long int n, int &status, mp_rnd_t mode=mpreal::get_default_rnd())
References newline, and buffer::put().
Referenced by res_comp::skeleton_stats(), res2_comp::start_computation(), res2_comp::text_out(), and res_comp::text_out().