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

◆ getElement< M2::ARingCC >()

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

Definition at line 59 of file ARingCCTest.cpp.

62{
63 if (index < 50)
64 C.set_from_long(result, index - 25);
65 else
66 C.random(result);
67}
void set_from_long(ElementType &result, long a) const
Definition aring-CC.hpp:171
void random(ElementType &result) const
Definition aring-CC.hpp:424
VALGRIND_MAKE_MEM_DEFINED & result(result)

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