1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
===========================================================
gf2mat_test: Test of matrix operations in gfmat.h/gfmat.cpp
===========================================================
A=---- GF(2) matrix of dimension 3*3 -- Density: 0.333333 ----
1 0 0
0 0 1
0 1 0
A*A=---- GF(2) matrix of dimension 3*3 -- Density: 0.333333 ----
1 0 0
0 1 0
0 0 1
A*A'=---- GF(2) matrix of dimension 3*3 -- Density: 0.333333 ----
1 0 0
0 1 0
0 0 1
B=---- GF(2) matrix of dimension 3*3 -- Density: 0.333333 ----
1 0 0
0 0 1
0 1 0
B.get_row(1)=[0 0 1]
B.get_col(2)=[0 1 0]
v=[1 1 0]
A*v=[1 0 1]
rank(A)=3
inv(A)=---- GF(2) matrix of dimension 3*3 -- Density: 0.333333 ----
1 0 0
0 0 1
0 1 0
C=---- GF(2) matrix of dimension 3*3 -- Density: 0.333333 ----
1 0 0
0 1 0
0 0 1
D=---- GF(2) matrix of dimension 3*3 -- Density: 0.333333 ----
1 0 0
0 1 0
0 0 1
p=[0 2 1]
|