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

◆ declare_field()

bool Ring::declare_field ( )

Definition at line 69 of file ring.cpp.

70{
71 if (_isfield >= 0)
72 {
73 _isfield = 1;
74 return true;
75 }
76 else
77 {
78 ERROR("attempting to declare a ring with known non-units to be a field");
79 return false;
80 }
81}
int _isfield
Definition ring.hpp:123
const int ERROR
Definition m2-mem.cpp:55

References _isfield, and ERROR.

Referenced by Tower::initialize(), FractionField::initialize_frac(), GF::initialize_GF(), and Z_mod::initialize_Z_mod().