20 Ifile <<
"DynLinArr<int>:";
22 file <<
" q=" << q <<
'\n';
28 for (i = 0; i < q; i++) {
32 Ifile << setw(4) << i <<
' ' << f[i] <<
'\n';
39 Ifile <<
"DynLinArr<long>:";
41 file <<
" q=" << q <<
'\n';
47 for (i = 0; i < q; i++) {
51 Ifile << setw(4) << i <<
' ' << f[i] <<
'\n';
59 Ifile <<
"DynLinArr<float>:";
61 file <<
" q=" << q <<
'\n';
67 for (i = 0; i < q; i++) {
71 Ifile << setw(4) << i <<
' ' << f[i] <<
'\n';
79 Ifile <<
"DynLinArr<double>:";
81 file <<
" q=" << q <<
'\n';
87 for (i = 0; i < q; i++) {
91 Ifile << setw(4) << i <<
' ' << f[i] <<
'\n';
100 Ifile <<
"Two arrays DynLinArr<double>:";
104 if (q_max > q2) q_max = q2;
105 file <<
" q1=" << q1 <<
" q2=" << q2 <<
'\n';
108 if (q_max <= 0)
return;
112 Ifile <<
"index array1 array2\n";
114 for (i = 0; i < q_max; i++) {
115 Ifile << setw(4) << i <<
' ';
117 file << setw(18) << f1[i] <<
' ';
121 file << setw(18) << f2[i] <<
'\n';
128 for (i = 0; i < q1; i++) {
129 file << setw(18) << f1[i] <<
' ';
133 for (i = 0; i < q2; i++) {
134 file << setw(18) << f2[i] <<
' ';
144 Ifile <<
"One DynLinArr<int> array and one DynLinArr<double>:\n";
148 if (q_max < qdar) q_max = qdar;
151 Ifile <<
" qiar=" << qiar <<
" qdar=" << qdar <<
'\n';
158 Ifile <<
"index int array double array\n";
160 for (i = 0; i < q_max; i++) {
161 Ifile << setw(4) << i <<
' ';
163 file << setw(8) << iar[i] <<
' ';
167 file << setw(18) << dar[i] <<
' ';
179 Ifile <<
"One DynLinArr<int> array and three arrays DynLinArr<double>:\n";
185 if (q_max < qdar1) q_max = qdar1;
186 if (q_max < qdar2) q_max = qdar2;
187 if (q_max < qdar3) q_max = qdar3;
190 Ifile <<
"qiar=" << qiar <<
" qdar1=" << qdar1 <<
" qdar2=" << qdar2
191 <<
" qdar3=" << qdar3 <<
'\n';
200 Ifile <<
"index int array double array1 double array2 double "
203 for (i = 0; i < q_max; i++) {
204 Ifile << setw(4) << i <<
' ';
206 file << setw(8) << iar[i] <<
' ';
210 file << setw(18) << dar1[i] <<
' ';
214 file << setw(18) << dar2[i] <<
' ';
218 file << setw(18) << dar3[i] <<
'\n';
232 for (n = 0; n < q; n++) {
236 return String(&(ar_ext[0]));
241 "void print_DynArr_int_w(ostream& file, const DynArr<int>& f, int w)");
243 Ifile <<
"DynArr<int>:";
245 file <<
" qdim=" << qdim <<
" sizes:";
249 for (n = 0; n < qdim; n++) {
250 file <<
' ' << qe[n];
258 if (
indn.
n + 3 + q * (w + 1) <= 80) {
261 for (i = 0; i < q; i++) {
262 file <<
' ' << setw(w) << f.
ac(i);
268 for (i = 0; i < q; i++) {
269 Ifile << setw(4) << i <<
' ' << f.
ac(i) <<
'\n';
272 }
else if (qdim == 2) {
275 if (qr <= 0 && qc <= 0)
return;
277 if (
indn.
n + 3 + qc * (w + 1) <= 80) {
278 Ifile <<
"first index - columns, second index - lines\n";
279 Ifile <<
"first index\n";
281 for (ir = 0; ir < qr; ir++) {
282 Ifile << setw(3) << ir;
283 for (ic = 0; ic < qc; ic++) {
284 Ifile <<
' ' << setw(w) << f.
ac(ir, ic);
288 }
else if (
indn.
n + 3 + qr * (w + 1) <= 80) {
289 Imcout <<
"first index - lines, second index - columns\n";
290 Imcout <<
"second index\n";
292 for (ic = 0; ic < qc; ic++) {
293 Ifile << setw(3) << ic;
294 for (ir = 0; ir < qr; ir++) {
295 Ifile <<
' ' << setw(w) << f.
ac(ir, ic);
300 Ifile <<
" row col value of element\n";
302 for (ir = 0; ir < qr; ir++) {
303 for (ic = 0; ic < qc; ic++) {
304 Ifile << setw(4) << ir <<
' ' << setw(4) << ic <<
' ' << f.
ac(ir, ic)
312 while ((at = iter_f.
more()) != NULL) {
330 mfunname(
"void print_DynArr_double(ostream& file, const DynArr<double>& f)");
332 Ifile <<
"DynArr<double>:";
334 file <<
" qdim=" << qdim <<
" sizes:";
338 for (n = 0; n < qdim; n++) {
339 file <<
' ' << qe[n];
348 for (i = 0; i < q; i++) {
350 file << f.
ac(i) <<
' ';
352 Ifile << setw(4) << i <<
' ' << f.
ac(i) <<
'\n';
356 }
else if (qdim == 2) {
359 if (qr <= 0 && qc <= 0)
return;
363 for (ir = 0; ir < qr; ir++) {
365 for (ic = 0; ic < qc; ic++) {
367 file << f.
ac(ir, ic) <<
' ';
369 Ifile << setw(4) << ir <<
' ' << setw(4) << ic <<
' ' << f.
ac(ir, ic)
382 mfunname(
"void print_DynArr_float(ostream& file, const DynArr<float>& f)");
384 Ifile <<
"DynArr<float>:";
386 file <<
" qdim=" << qdim <<
" sizes:";
390 for (n = 0; n < qdim; n++) {
391 file <<
' ' << qe[n];
400 for (i = 0; i < q; i++) {
402 file << f.
ac(i) <<
' ';
404 Ifile << setw(4) << i <<
' ' << f.
ac(i) <<
'\n';
408 }
else if (qdim == 2) {
411 if (qr <= 0 && qc <= 0)
return;
415 for (ir = 0; ir < qr; ir++) {
417 for (ic = 0; ic < qc; ic++) {
419 file << f.
ac(ir, ic) <<
' ';
421 Ifile << setw(4) << ir <<
' ' << setw(4) << ic <<
' ' << f.
ac(ir, ic)
435 mcerr <<
"gconfirm_ind(...): "
436 <<
"qel.get_qel()!= ind.get_qel()\n"
437 <<
"qel.get_qel()=" << qel.
get_qel()
438 <<
"ind.get_qel()=" << ind.
get_qel() <<
'\n';
444 for (n = 0; n < qd; n++)
445 if (ind[n] < 0 || ind[n] >= qel[n])
return 0;
450 mcerr <<
"gconfirm_ind_ext(...): "
451 <<
"qel.get_qel()> ind.get_qel()\n"
452 <<
"qel.get_qel()=" << qel.
get_qel()
453 <<
" ind.get_qel()=" << ind.
get_qel() <<
'\n';
458 for (n = 0; n < qd; n++)
459 if (ind[n] < 0 || ind[n] >= qel[n])
return 0;
460 for (n = qd; n < ind.
get_qel(); n++)
461 if (ind[n] != 0)
return 0;
468 if (qdim <= 0)
return 0;
469 if (qdim != f.
get_qel())
return 0;
471 for (n = qdim - 1; n >= 0; n--) {
472 if (f[n] < qel[n] - 1) {
480 for (n = 0; n < qdim - 1; n++)
482 f[qdim - 1] = qel[qdim - 1];
484 for (n = qdim - 1; n >= 0; n--) {
485 if (f.
acu(n) < qel.
acu(n) - 1) {
493 for (n = 0; n < qdim - 1; n++)
494 f.
acu(n) = qel.
acu(n) - 1;
495 f.
acu(qdim - 1) = qel.
acu(qdim - 1);
503 if (qdim <= 0)
return 0;
504 if (qdim != f.
get_qel())
return 0;
505 for (n = qdim - 1; n >= 0; n--) {
506 if (f[n] < qel[n] - 1) {
509 for (n1 = n + 1; n1 < qdim; n1++)
514 for (n = 0; n < qdim - 1; n++)
516 f[qdim - 1] = qel[qdim - 1];
523 if (qdim <= 0)
return 0;
524 if (qdim != f.
get_qel())
return 0;
525 for (n = qdim - 1; n >= 0; n--) {
533 for (n = 0; n < qdim - 1; n++)
void print_DynLinArr_int(ostream &file, const DynLinArr< int > &f)
void print_DynArr_int_w(ostream &file, const DynArr< int > &f, int w)
DynLinArr< long > qel_communicat
void print_DynArr_float(ostream &file, const DynArr< float > &f)
void print_DynLinArr_int_double3(ostream &file, const DynLinArr< int > &iar, const DynLinArr< double > &dar1, const DynLinArr< double > &dar2, const DynLinArr< double > &dar3)
int find_next_comb_not_less(const DynLinArr< long > &qel, DynLinArr< long > &f)
String DynLinArr_char_we_to_String(DynLinArr< char > &ar)
void print_DynLinArr_double(ostream &file, const DynLinArr< double > &f)
int find_next_comb(const DynLinArr< long > &qel, DynLinArr< long > &f)
void print_DynLinArr_int_double(ostream &file, const DynLinArr< int > &iar, const DynLinArr< double > &dar)
void print_DynArr_double(ostream &file, const DynArr< double > &f)
void print_DynLinArr_double2(ostream &file, const DynLinArr< double > &f1, const DynLinArr< double > &f2)
int find_prev_comb(const DynLinArr< long > &qel, DynLinArr< long > &f)
int gconfirm_ind_ext(const DynLinArr< long > &qel, const DynLinArr< long > &ind)
void print_DynLinArr_float(ostream &file, const DynLinArr< float > &f)
void print_DynLinArr_long(ostream &file, const DynLinArr< long > &f)
int gconfirm_ind(const DynLinArr< long > &qel, const DynLinArr< long > &ind)
const int pq_arrelem_in_line
long get_qdim(void) const
const DynLinArr< long > & get_qel(void) const
const DynLinArr< long > & get_ncur(void) const
std::ostream & yesindent(std::ostream &f)
std::ostream & noindent(std::ostream &f)