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

◆ getElement< M2::ARingRR >()

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

Definition at line 62 of file ARingRRTest.cpp.

65{
66 if (index < 50)
67 R.set_from_long(result, index - 25);
68 else
69 R.random(result);
70}
void set_from_long(ElementType &result, long a) const
Definition aring-RR.hpp:134
void random(ElementType &result) const
Definition aring-RR.hpp:266
VALGRIND_MAKE_MEM_DEFINED & result(result)

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