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

◆ coerceToLongInteger()

std::pair< bool, long > Z_mod::coerceToLongInteger ( ring_elem a) const
virtual

Reimplemented from Ring.

Definition at line 80 of file ZZp.cpp.

81{
82 return std::pair<bool, long>(true, to_int(a.get_int()));
83}
int to_int(int a) const
Definition ZZp.cpp:73
int get_int() const
Definition ringelem.hpp:124

References ring_elem::get_int(), and to_int().