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

◆ getElement< M2::ARingZZpFlint >()

template<>
void getElement< M2::ARingZZpFlint > ( const M2::ARingZZpFlint & R,
int index,
M2::ARingZZpFlint::ElementType & result )

Definition at line 309 of file ARingZZpTest.cpp.

312{
313 if (index < 50)
314 R.set_from_long(result, index - 25);
315 else
316 {
318 R.set_from_mpz(result, a);
319 }
320}
gmp_ZZ getRandomInteger()
void set_from_mpz(ElementType &result, mpz_srcptr a) const
void set_from_long(ElementType &result, long a) const
VALGRIND_MAKE_MEM_DEFINED & result(result)
mpz_srcptr gmp_ZZ
Definition m2-types.h:141

References getRandomInteger(), result(), M2::ARingZZpFlint::set_from_long(), and M2::ARingZZpFlint::set_from_mpz().