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

◆ text_out() [1/3]

void res_comp::text_out ( buffer & o) const
virtual

Implements ResolutionComputation.

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

1301{
1302 o << "level/degree = " << n_level << '/' << n_degree << newline;
1303 o << "--- The total number of pairs in each level/slanted degree -----"
1304 << newline;
1305 M2_arrayint a = betti_skeleton();
1306 betti_display(o, a);
1307 o << "--- The number of pairs left to compute ------------------------"
1308 << newline;
1309 a = betti_remaining();
1310 betti_display(o, a);
1311 o << "--- (Lower bounds of) the minimal betti numbers ----------" << newline;
1312 a = betti_minimal();
1313 betti_display(o, a);
1314 if (M2_gbTrace >= 1)
1315 {
1316 o << "--- Number of monomials ---------------------------------"
1317 << newline;
1318 a = betti_nmonoms();
1319 betti_display(o, a);
1320 }
1321
1322 // If the printlevel is high enough, display each element
1323 if (M2_gbTrace >= 2)
1324 for (int lev = 0; lev < resn.size(); lev++)
1325 {
1326 o << "---- level " << lev << " ----" << newline;
1327 for (int i = 0; i < resn[lev]->bin.size(); i++)
1328 {
1329 res_degree *mypairs = resn[lev]->bin[i];
1330 if (mypairs == nullptr) continue;
1331 for (res_pair *p = mypairs->first; p != nullptr; p = p->next)
1332 {
1333 o.put(i, 4);
1334 o << ' ';
1335 text_out(o, p);
1336 }
1337 }
1338 }
1339}
static void betti_display(buffer &o, M2_arrayint a)
Definition comp-res.cpp:207
void put(const char *s)
Definition buffer.cpp:35
M2_arrayint betti_remaining() const
Definition res-a1.cpp:1224
int n_level
Definition res-a1.hpp:88
int n_degree
Definition res-a1.hpp:89
M2_arrayint betti_minimal() const
Definition res-a1.cpp:1225
void text_out(const res_pair *p) const
Definition res-a1.cpp:1287
M2_arrayint betti_nmonoms() const
Definition res-a1.cpp:1226
M2_arrayint betti_skeleton() const
Definition res-a1.cpp:1223
res_pair * first
Definition res-a1.hpp:25
int p
char newline[]
Definition m2-types.cpp:49
int M2_gbTrace
Definition m2-types.cpp:52

References ResolutionComputation::betti_display(), betti_minimal(), betti_nmonoms(), betti_remaining(), betti_skeleton(), res_degree::first, M2_gbTrace, n_degree, n_level, newline, p, buffer::put(), and text_out().