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

◆ fromStream< Z_mod >()

template<>
bool fromStream< Z_mod > ( std::istream & i,
const Z_mod & R,
ring_elem & result )

Definition at line 59 of file fromStream.cpp.

60{
61 while (isspace(i.peek())) i.get();
62
63 if (!isdigit(i.peek()) && i.peek() != '+' && i.peek() != '-') return false;
64
65 int a;
66 i >> a;
67 result = R.from_long(a);
68 return true;
69}
virtual ring_elem from_long(long n) const
Definition ZZp.cpp:132
VALGRIND_MAKE_MEM_DEFINED & result(result)

References Z_mod::from_long(), and result().