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

◆ getElement< M2::ARingZZpFFPACK >()

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

Definition at line 179 of file ARingZZpTest.cpp.

182{
183 if (index < 50)
184 R.set_from_long(result, index - 25);
185 else
186 {
188 R.set_from_mpz(result, a);
189 }
190}
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::ARingZZpFFPACK::set_from_long(), and M2::ARingZZpFFPACK::set_from_mpz().