File: gf2mat_test.ref

package info (click to toggle)
libitpp 4.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 7,520 kB
  • ctags: 6,341
  • sloc: cpp: 51,608; sh: 9,248; makefile: 636; fortran: 8
file content (44 lines) | stat: -rw-r--r-- 995 bytes parent folder | download | duplicates (8)
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]