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

◆ text_out()

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

Implements gb_node.

Definition at line 937 of file res-a2-gb.cpp.

938{
939 if (M2_gbTrace >= 4 && n_gb > 0)
940 {
941 int nmonoms = 0;
942 int nchange = 0;
943 for (int i = 0; i < gb.size(); i++)
944 {
945 nmonoms += GR->gbvector_n_terms(gb[i]->f);
946 nchange += GR->gbvector_n_terms(gb[i]->fsyz);
947 }
948 o.put(n_gb, 5);
949 o.put(" ");
950 o.put(n_pairs, 5);
951 o.put(" ");
952 o.put(n_pairs_computed, 5);
953 o.put(" ");
954 o.put(n_pairs_gb, 5);
955 o.put(" ");
956 o.put(n_pairs_syz, 5);
957 o.put(" ");
958 o.put(n_pairs_zero, 5);
959 o.put(" ");
960 o.put(n_pairs_usyz, 5);
961 o.put(" ");
962 o.put(n_pairs_hilb, 5);
963 o.put(" ");
964 o.put(n_pairs_gcd, 5);
965 o.put(" ");
966 o.put(nmonoms, 5);
967 o.put(" ");
968 o.put(nchange, 5);
969 o.put(newline);
970 }
971
972 spairs->text_out(o);
973 if (M2_gbTrace >= 5 && M2_gbTrace % 2 == 1)
974 for (int i = 0; i < gb.size(); i++)
975 {
976 o << i << '\t';
977 GR->gbvector_text_out(o, F, gb[i]->f);
978 o << newline;
979 }
980}
void put(const char *s)
Definition buffer.cpp:35
int n_pairs_computed
Definition res-a2.hpp:147
int n_pairs
Definition res-a2.hpp:146
int n_pairs_syz
Definition res-a2.hpp:149
int n_pairs_gb
Definition res-a2.hpp:151
int n_pairs_zero
Definition res-a2.hpp:152
int n_gb
Definition res-a2.hpp:141
FreeModule * F
Definition res-a2.hpp:120
s_pair_heap * spairs
Definition res-a2.hpp:129
int n_pairs_gcd
Definition res-a2.hpp:154
int n_pairs_usyz
Definition res-a2.hpp:150
int n_pairs_hilb
Definition res-a2.hpp:153
GBRing * GR
Definition res-a2.hpp:114
void gb(IntermediateBasis &F, int n)
char newline[]
Definition m2-types.cpp:49
int M2_gbTrace
Definition m2-types.cpp:52

References F, gb(), GR, M2_gbTrace, n_gb, n_pairs, n_pairs_computed, n_pairs_gb, n_pairs_gcd, n_pairs_hilb, n_pairs_syz, n_pairs_usyz, n_pairs_zero, newline, buffer::put(), and spairs.