36{
39
40 RingZZp* R = new RingZZp(101);
41 MatZZp M(*R, 5, 5);
42
43 EXPECT_TRUE(&M.ring() == R);
44
45 RingZZp::ElementType a, b;
46 R->init(a);
47 R->init(b);
48 R->set_from_long(a, 13);
49 R->set(M.entry(0, 2), a);
50
51 R->set(b, M.entry(0, 2));
52 EXPECT_TRUE(R->is_equal(a, b));
53}
aring-style adapter for Z/p using a discrete-log (Zech) representation: every non-zero residue is its...