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

◆ TEST() [1/2]

TEST ( DMatZZp ,
create  )

Definition at line 35 of file DMatZZpTest.cpp.

36{
37 typedef M2::ARingZZp RingZZp;
38 typedef DMat<M2::ARingZZp> MatZZp;
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}
Definition dmat.hpp:62
aring-style adapter for Z/p using a discrete-log (Zech) representation: every non-zero residue is its...
Definition aring-zzp.hpp:67