Transpositions matrix

From testwiki
Jump to navigation Jump to search

Transpositions matrix (Tr matrix) is square n×n matrix, n=2m, mN, which elements are obtained from the elements of given n-dimensional vector X=(xi)i=1,n as follows: Tri,j=x(i1)(j1)+1, where denotes operation "bitwise Exclusive or" (XOR). The rows and columns of Transpositions matrix consists permutation of elements of vector X, as there are n/2 transpositions between every two rows or columns of the matrix

Example

The figure below shows Transpositions matrix Tr(X) of order 8, created from arbitrary vector X=(x1,x2,x3,x4,x5,x6,x7,x8) Tr(X)=[x1x2x3x4x5x6x7x8x2x1x4x3x6x5x8x7x3x4x1x2x7x8x5x6x4x3x2x1x8x7x6x5x5x6x7x8x1x2x3x4x6x5x8x7x2x1x4x3x7x8x5x6x3x4x1x2x8x7x6x5x4x3x2x1]

Properties

  • Tr matrix is symmetric matrix.
  • Tr matrix is persymmetric matrix, i.e. it is symmetric with respect to the northeast-to-southwest diagonal too.
  • Every one row and column of Tr matrix consists all n elements of given vector X without repetition.
  • Every two rows Tr matrix consists n/2 fours of elements with the same values of the diagonal elements. In example if Trp,q and Tru,q are two arbitrary selected elements from the same column q of Tr matrix, then, Tr matrix consists one fours of elements (Trp,q,Tru,q,Trp,v,Tru,v), for which are satisfied the equations Trp,q=Tru,v and Tru,q=Trp,v. This property, named “Tr-property” is specific to Tr matrices.
Fours of elements in Tr matrix

The figure on the right shows some fours of elements in Tr matrix.

Transpositions matrix with mutually orthogonal rows (Trs matrix)

The property of fours of Tr matrices gives the possibility to create matrix with mutually orthogonal rows and columns (Trs matrix ) by changing the sign to an odd number of elements in every one of fours (Trp,q,Tru,q,Trp,v,Tru,v), p,q,u,v[1,n]. In [5] is offered algorithm for creating Trs matrix using Hadamard product, (denoted by ) of Tr matrix and n-dimensional Hadamard matrix whose rows (except the first one) are rearranged relative to the rows of Sylvester-Hadamard matrix in order R=[1,r2,,rn]T,r2,,rn[2,n], for which the rows of the resulting Trs matrix are mutually orthogonal.

Trs(X)=Tr(X)H(R) Trs.TrsT=X2.In

where:

  • "" denotes operation Hadamard product
  • In is n-dimensional Identity matrix.
  • H(R) is n-dimensional Hadamard matrix, which rows are interchanged against the Sylvester-Hadamard[4] matrix in given order R=[1,r2,,rn]T,r2,,rn[2,n] for which the rows of the resulting Trs matrix are mutually orthogonal.
  • X is the vector from which the elements of Tr matrix are derived.

Orderings R of Hadamard matrix’s rows were obtained experimentally for Trs matrices of sizes 2, 4 and 8. It is important to note, that the ordering R of Hadamard matrix’s rows (against the Sylvester-Hadamard matrix) does not depend on the vector X. Has been proven[5] that, if X is unit vector (i.e. X=1), then Trs matrix (obtained as it was described above) is matrix of reflection.

Example of obtaining Trs matrix

Transpositions matrix with mutually orthogonal rows (Trs matrix) of order 4 for vector X=(x1,x2,x3,x4)T is obtained as:

Trs(X)=H(R)Tr(X)=(1111111111111111)(x1x2x3x4x2x1x4x3x3x4x1x2x4x3x2x1)=(x1x2x3x4x2x1x4x3x3x4x1x2x4x3x2x1) where Tr(X) is Tr matrix, obtained from vector X, and "" denotes operation Hadamard product and H(R) is Hadamard matrix, which rows are interchanged in given order R for which the rows of the resulting Trs matrix are mutually orthogonal. As can be seen from the figure above, the first row of the resulting Trs matrix contains the elements of the vector X without transpositions and sign change. Taking into consideration that the rows of the Trs matrix are mutually orthogonal, we get Trs(X).X=X2[1000]

which means that the Trs matrix rotates the vector X, from which it is derived, in the direction of the coordinate axis x1

In [5] are given as examples code of a Matlab functions that creates Tr and Trs matrices for vector X of size n = 2, 4, or, 8. Stay open question is it possible to create Trs matrices of size, greater than 8.

See also

Template:Portal

References

  1. Template:Cite book
  2. Template:Citation
  3. Template:Citation
  4. Template:Cite journal
  5. Template:Cite book