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

◆ text_out() [1/3]

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

Implements ResolutionComputation.

Definition at line 1998 of file res-a0.cpp.

1999{
2000 o << "--- The total number of pairs in each level/slanted degree -----"
2001 << newline;
2002 M2_arrayint a = betti_skeleton();
2003 betti_display(o, a);
2004 // o << "--- The number of pairs left to compute ------------------------" <<
2005 // newline;
2006 // a.shrink(0);
2007 // betti_remaining(a);
2008 // betti_display(o, a);
2009 o << "--- (Lower bounds of) the minimal betti numbers ----------" << newline;
2010 a = betti_minimal();
2011 betti_display(o, a);
2012 if (M2_gbTrace >= 1)
2013 {
2014 o << "-- #Reduction steps = " << total_reduce_count << "--"
2015 << " ones " << n_ones << " unique " << n_unique << " others "
2016 << n_others << " ----" << newline;
2017 o << "--- Number of monomials ---------------------------------"
2018 << newline;
2019 a = betti_nmonoms();
2020 betti_display(o, a);
2021 }
2022
2023 // If the printlevel is high enough, display each element
2024 if (M2_gbTrace >= 2)
2025 for (int lev = 0; lev < resn.size(); lev++)
2026 {
2027 if (resn[lev]->pairs == nullptr) continue;
2028 o << "---- level " << lev << " ----" << newline;
2029 for (res2_pair *p = resn[lev]->pairs; p != nullptr; p = p->next)
2030 text_out(o, p);
2031 }
2032}
static void betti_display(buffer &o, M2_arrayint a)
Definition comp-res.cpp:207
int total_reduce_count
Definition res-a0.hpp:184
int n_others
Definition res-a0.hpp:189
void text_out(const res2_pair *p) const
Definition res-a0.cpp:1919
M2_arrayint betti_skeleton() const
Definition res-a0.cpp:1816
int n_unique
Definition res-a0.hpp:188
M2_arrayint betti_minimal() const
Definition res-a0.cpp:1855
M2_arrayint betti_nmonoms() const
Definition res-a0.cpp:1877
int n_ones
Definition res-a0.hpp:187
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_skeleton(), M2_gbTrace, n_ones, n_others, n_unique, newline, p, text_out(), and total_reduce_count.