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

◆ displayF4MatrixSize()

void NCF4::displayF4MatrixSize ( std::ostream & o) const

Definition at line 1066 of file NCF4.cpp.

1067{
1068 // Display sizes:
1069 o << "(#cols, #reducer rows, #spair rows) = ("
1070 << mColumnMonomials.size() << ", "
1071 << mFirstOverlap << ", "
1072 << mRows.size() - mFirstOverlap << ")"
1073 << " ";
1074 long numReducerEntries = 0;
1075 long numSPairEntries = 0;
1076
1077 // if (mRows.size() != mReducersTodo.size())
1078 // {
1079 // o << std::endl;
1080 // o << "***ERROR*** expected mRows and mReducersTodo to have the same length!" << std::endl;
1081 // o << " mRows size: " << mRows.size() << std::endl;
1082 // o << "mReducersTodo size: " << mReducersTodo.size() << std::endl;
1083 // exit(1);
1084 // }
1085 for (auto i = 0; i < mRows.size(); ++i)
1086 {
1087 if (i < mFirstOverlap)
1088 numReducerEntries += mVectorArithmetic->size(mRows[i].coeffVector);
1089 else
1090 numSPairEntries += mVectorArithmetic->size(mRows[i].coeffVector);
1091 if (mVectorArithmetic->size(mRows[i].coeffVector) != mRows[i].columnIndices.size())
1092 o << "***ERROR*** ring_elem and component ranges do not match!" << std::endl;
1093 }
1094 o << "#entries: (" << numReducerEntries << "," << numSPairEntries << ")"
1095 << std::endl;
1096}
MonomialHash mColumnMonomials
Definition NCF4.hpp:235
int mFirstOverlap
Definition NCF4.hpp:247
RowsVector mRows
Definition NCF4.hpp:243
const VectorArithmetic * mVectorArithmetic
Definition NCF4.hpp:250

References mColumnMonomials, mFirstOverlap, mRows, and mVectorArithmetic.

Referenced by displayF4Matrix(), displayFullF4Matrix(), and process().