42 typename T::ElementType &
result);
61 while (isspace(i.peek())) i.get();
63 if (!isdigit(i.peek()) && i.peek() !=
'+' && i.peek() !=
'-')
return false;
74 while (isspace(i.peek())) i.get();
76 if (!isdigit(i.peek()) && i.peek() !=
'+' && i.peek() !=
'-')
return false;
78 const int original_s_len = 100;
79 char original_s[original_s_len];
80 char *s_str = original_s;
84 while (isdigit(i.peek()))
Shared gtest fixture for the legacy Ring-based Ring*Test.cpp suite.
Legacy Z_mod — a Ring-derived Z/p with log / exp tables.
M2::ARingZZp — portable Z/p for small primes via log / exp tables.
void set_from_long(elem &result, long a) const
aring-style adapter for Z/p using a discrete-log (Zech) representation: every non-zero residue is its...
virtual ring_elem from_long(long n) const
Engine-side ring of integers, backed by GMP mpz_ptr elements.
virtual ring_elem from_long(long n) const
Engine-side Z/p ring for small primes (p < 32767), using a discrete-log (Zech) representation.
std::istream & fromStream< M2::ARingZZp >(std::istream &i, const M2::ARingZZp &R, M2::ARingZZp::ElementType &result)
bool fromStream< Z_mod >(std::istream &i, const Z_mod &R, ring_elem &result)
std::istream & fromStream(std::istream &i, const T &R, typename T::ElementType &result)
bool fromStream< RingZZ >(std::istream &i, const RingZZ &R, ring_elem &result)
VALGRIND_MAKE_MEM_DEFINED & result(result)