Definition at line 115 of file ARingRRRTest.cpp.
116{
120 R.init(a);
121 R.init(b);
122 R.init(c);
123 R.init(d);
124 R.init(e);
125 for (
int i = 0; i <
ntrials; i++)
126 {
127
128 gen.nextElement(a);
129 gen.nextElement(b);
130 R.add(c, a, b);
131 R.negate(d, b);
132 R.add(e, c, d);
134 }
135 R.clear(e);
136 R.clear(d);
137 R.clear(c);
138 R.clear(b);
139 R.clear(a);
140}
bool almostEqual(const M2::ARingRRR &R, int nbits, const M2::ARingRRR::ElementType &a, const M2::ARingRRR::ElementType &b)
aring-style adapter for arbitrary-precision real numbers, backed by MPFR.
References M2::ARingRRR::add(), almostEqual(), M2::ARingRRR::clear(), M2::ARingRRR::init(), M2::ARingRRR::negate(), ARingElementGenerator< RingType >::nextElement(), and ntrials.