Category:Binary matrix templates

From Wikiversity
Jump to navigation Jump to search

These templates allow to create small permutation matrices with a short source code.

{{Row8,0start}}{{Row8,4}}{{Row8,6}}{{Row8,2}}[[File:1x1.png|alt=]]<br>{{Row8,7}}{{Row8,3}}{{Row8,1}}{{Row8,5end}}

gives

[1,0,0,0, 0,0,0,0;
0,0,0,0, 1,0,0,0;
0,0,0,0, 0,0,1,0;
0,0,1,0, 0,0,0,0;

0,0,0,0, 0,0,0,1;
0,0,0,1, 0,0,0,0;
0,1,0,0, 0,0,0,0;
0,0,0,0, 0,1,0,0]

This arrangement copied and pasted gives:

[1,0,0,0, 0,0,0,0;
0,0,0,0, 1,0,0,0;
0,0,0,0, 0,0,1,0;
0,0,1,0, 0,0,0,0;

0,0,0,0, 0,0,0,1;
0,0,0,1, 0,0,0,0;
0,1,0,0, 0,0,0,0;
0,0,0,0, 0,1,0,0]



See: Table of 3-bit Walsh permutations