Definition at line 747 of file ring-vecs.cpp.
748{
749 if (v == nullptr)
750 {
751 ERROR(
"attempting to find degree of zero vector");
752 return;
753 }
755 for (vec w = v->next; w != nullptr; w = w->next)
756 {
757 int lo1, hi1;
759 if (lo1 < lo) lo = lo1;
760 if (hi1 > hi) hi = hi1;
761 }
762}
virtual void degree_of_var(int n, const ring_elem a, int &lo, int &hi) const
References degree_of_var(), and ERROR.
Referenced by Matrix::divide_by_var().