Macaulay2 Engine
Loading...
Searching...
No Matches

◆ text_out() [2/3]

void res_comp::text_out ( buffer & o,
const res_pair * p ) const

Definition at line 1227 of file res-a1.cpp.

1228{
1229 res_pair *a = p->first;
1230 res_pair *b = p->second; // possibly NULL
1231 o << p->me << ' ';
1232 if (a != nullptr)
1233 o << a->me << ' ';
1234 else
1235 o << ". ";
1236 if (b != nullptr)
1237 o << b->me << ' ';
1238 else
1239 o << ". ";
1240
1241 o << p->compare_num << ' ';
1242
1243 switch (p->syz_type)
1244 {
1245 case SYZ_S_PAIR:
1246 o << "PR";
1247 break;
1248 case SYZ_GEN:
1249 o << "GN";
1250 break;
1251 case SYZ_MINIMAL:
1252 o << "SZ";
1253 break;
1254 case SYZ_NOT_MINIMAL:
1255 o << "GB";
1256 break;
1257 case SYZ_NOT_NEEDED:
1258 o << "NO";
1259 break;
1260 default:
1261 break;
1262 }
1263
1264#if 0
1265// if (p->mi_exists)
1266#endif
1267 o << "[mi: " << p->mi->size() << "]";
1268#if 0
1269// else
1270// {
1271// res_pair *q = p->next_div;
1272// int n = 0;
1273// while (q != NULL) { n++; q = q->next_div; }
1274// o << "[midiv: " << n << "]";
1275// }
1276#endif
1277 M->elem_text_out(o, p->base_monom);
1278 if (M2_gbTrace >= 3)
1279 {
1280 // Display the vector
1281 o << " syz: ";
1282 R->elem_text_out(o, p->syz);
1283 }
1284 o << newline;
1285}
const Monoid * M
Definition res-a1.hpp:80
res_poly * R
Definition res-a1.hpp:79
int p
char newline[]
Definition m2-types.cpp:49
int M2_gbTrace
Definition m2-types.cpp:52
@ SYZ_NOT_MINIMAL
@ SYZ_S_PAIR
@ SYZ_NOT_NEEDED
@ SYZ_MINIMAL
@ SYZ_GEN

References M, M2_gbTrace, res_pair::me, newline, p, R, SYZ_GEN, SYZ_MINIMAL, SYZ_NOT_MINIMAL, SYZ_NOT_NEEDED, and SYZ_S_PAIR.