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

◆ show()

void SchreyerFrame::show ( int len) const

Definition at line 776 of file res-schreyer-frame.cpp.

777{
778 std::cout << "#levels=" << mFrame.mLevels.size()
779 << " currentLevel=" << currentLevel() << std::endl;
780 for (int i = 0; i < mFrame.mLevels.size(); i++)
781 {
782 auto& myframe = level(i);
783 auto& myorder = schreyerOrder(i);
784 if (myframe.size() == 0) continue;
785 std::cout << "--- level " << i << " ------" << std::endl;
786 for (int j = 0; j < myframe.size(); j++)
787 {
788 std::cout << " " << j << " " << myframe[j].mDegree << " ("
789 << myframe[j].mBegin << "," << myframe[j].mEnd << ") "
790 << std::flush;
791 if (myframe[j].mSyzygy.coeffs.isNull())
792 std::cout << "coeffs=null " << std::flush;
793 std::cout << "(size:" << myframe[j].mSyzygy.len << ") [";
794 monoid().showAlpha(myorder.mTotalMonom[j]);
795 std::cout << " " << myorder.mTieBreaker[j] << "] ";
796 if (len == 0 or myframe[j].mSyzygy.len == 0)
797 monoid().showAlpha(myframe[j].mMonom);
798 else
799 {
800 display_poly(std::cout, ring(), myframe[j].mSyzygy);
801 }
802 std::cout << std::endl;
803 }
804 }
806}
void showAlpha(res_const_packed_monomial m) const
const ResMonoid & monoid() const
std::vector< FrameElement > & level(int lev)
const ResPolyRing & ring() const
void showMemoryUsage() const
ResSchreyerOrder & schreyerOrder(int lev)
void display_poly(std::ostream &o, const ResPolyRing &R, const ResPolynomial &f)

References currentLevel(), display_poly(), level(), mFrame, monoid(), ring(), schreyerOrder(), ResMonoidDense::showAlpha(), and showMemoryUsage().