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

◆ getElement< M2::ARingRRi >()

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

Definition at line 73 of file ARingRRiTest.cpp.

76{
77 if (index < 50)
78 R.set_from_long(result, index - 25);
79 else
80 R.random(result);
81}
void random(ElementType &result) const
void set_from_long(ElementType &result, long a) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References M2::ARingRRi::random(), result(), and M2::ARingRRi::set_from_long().