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

◆ is_one()

bool M2::ARingTower::is_one ( int level,
const ARingPolynomial f ) const
private

Definition at line 205 of file aring-tower.cpp.

206{
207 if (f == nullptr) return false;
208 if (f->deg != 0) return false;
209 if (level == 0)
210 return 1 == f->coeffs[0];
211 else
212 return is_one(level - 1, f->polys[0]);
213}
bool is_one(int level, const ARingPolynomial f) const

References M2::ARingPolynomialStruct::coeffs, M2::ARingPolynomialStruct::deg, is_one(), and M2::ARingPolynomialStruct::polys.

Referenced by elem_text_out(), and is_one().