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

◆ text_out()

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

Reimplemented from GBComputation.

Definition at line 359 of file hermite.cpp.

362{
363 o << newline;
364 for (int i = 0; i < gens->n_rows(); i++)
365 if (initial[i] != nullptr)
366 {
367 o << "--- component " << i << " -----" << newline;
368 for (hm_elem *p = initial[i]; p != nullptr; p = p->next)
369 {
370 bignum_text_out(o, p->lead);
371 o << " ## ";
372 globalZZ->vec_text_out(o, p->f);
373 o << " ## ";
374 globalZZ->vec_text_out(o, p->fsyz);
375 o << newline;
376 // If the computation is done, this is the GB we are displaying
377 // but we only want the first element in each list.
378 if (status() == COMP_DONE) break;
379 }
380 }
381 o << newline << "--- syzygies ---" << newline;
382 for (int i = 0; i < syz_list.size(); i++)
383 globalZZ->vec_text_out(o, syz_list[i]);
384 o << newline;
385}
enum ComputationStatusCode status() const
Definition comp.hpp:100
const Matrix * gens
Definition hermite.hpp:61
void vec_text_out(buffer &o, const vecterm *v, bool p_one=true, bool p_plus=false, bool p_parens=false) const
@ COMP_DONE
Definition computation.h:60
RingZZ * globalZZ
Definition relem.cpp:13
int p
char newline[]
Definition m2-types.cpp:49
void bignum_text_out(buffer &o, mpz_srcptr a)
Definition text-io.cpp:12

References bignum_text_out(), COMP_DONE, gens, globalZZ, newline, p, and Computation::status().