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

◆ getElement< M2::ARingRRR >()

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

Definition at line 65 of file ARingRRRTest.cpp.

68{
69 if (index < 50)
70 R.set_from_long(result, index - 25);
71 else
72 R.random(result);
73}
void random(ElementType &result) const
void set_from_long(ElementType &result, long a) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

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