Definition at line 192 of file ARingCCCTest.cpp.
193{
197 C.init(a);
198 C.init(b);
199 C.init(c);
200 C.init(d);
201 C.init(e);
202 for (
int i = 0; i <
ntrials; i++)
203 {
204 gen.nextElement(a);
205 gen.nextElement(b);
206 gen.nextElement(c);
207
208
209
210 C.add(d, a, b);
211 C.add(e, b, a);
213 C.mult(d, a, b);
214 C.mult(e, b, a);
216
217
218
219
220 C.add(e, b, c);
221 C.add(d, a, e);
222 C.add(e, a, b);
223 C.add(e, e, c);
225 C.mult(e, b, c);
226 C.mult(d, a, e);
227 C.mult(e, a, b);
228 C.mult(e, e, c);
230 C, 93, d, e));
231
232
233
234 C.add(e, b, c);
235 C.mult(d, a, e);
236 C.mult(b, a, b);
237 C.mult(c, a, c);
238 C.add(e, b, c);
240 }
241 C.clear(e);
242 C.clear(d);
243 C.clear(c);
244 C.clear(b);
245 C.clear(a);
246}
bool almostEqual(const M2::ARingCCC &C, int nbits, const M2::ARingCCC::ElementType &a, const M2::ARingCCC::ElementType &b)
aring-style adapter for arbitrary-precision complex numbers, stored as (MPFR, MPFR) pairs.
References M2::ARingCCC::add(), almostEqual(), M2::ARingCCC::clear(), M2::ARingCCC::init(), M2::ARingCCC::mult(), ARingElementGenerator< RingType >::nextElement(), and ntrials.