Transpositions matrix
   HOME

TheInfoList



OR:

Transpositions matrix (Tr matrix) is square n \times n
matrix Matrix (: matrices or matrixes) or MATRIX may refer to: Science and mathematics * Matrix (mathematics), a rectangular array of numbers, symbols or expressions * Matrix (logic), part of a formula in prenex normal form * Matrix (biology), the m ...
, n=2^, m \in N , which elements are obtained from the elements of given n-dimensional vector X=(x_i)_ as follows: Tr_ = x_, where \oplus denotes operation "
bitwise In computer programming, a bitwise operation operates on a bit string, a bit array or a binary numeral (considered as a bit string) at the level of its individual bits. It is a fast and simple action, basic to the higher-level arithmetic operat ...
Exclusive or Exclusive or, exclusive disjunction, exclusive alternation, logical non-equivalence, or logical inequality is a logical operator whose negation is the logical biconditional. With two inputs, XOR is true if and only if the inputs differ (on ...
" (XOR). The rows and columns of Transpositions matrix consists
permutation In mathematics, a permutation of a set can mean one of two different things: * an arrangement of its members in a sequence or linear order, or * the act or process of changing the linear order of an ordered set. An example of the first mean ...
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=\beginx_1,x_2,x_3,x_4,x_5,x_6,x_7,x_8 \\\end Tr(X) = \left[\begin x_1 & x_2 & x_3 & x_4 & x_5 & x_6 & x_7 & x_8 \\ x_2 & x_1 & x_4 & x_3 & x_6 & x_5 & x_8 & x_7 \\ x_3 & x_4 & x_1 & x_2 & x_7 & x_8 & x_5 & x_6 \\ x_4 & x_3 & x_2 & x_1 & x_8 & x_7 & x_6 & x_5 \\ \hline x_5 & x_6 & x_7 & x_8 & x_1 & x_2 & x_3 & x_4 \\ x_6 & x_5 & x_8 & x_7 & x_2 & x_1 & x_4 & x_3 \\ x_7 & x_8 & x_5 & x_6 & x_3 & x_4 & x_1 & x_2 \\ x_8 & x_7 & x_6 & x_5 & x_4 & x_3 & x_2 & x_1 \end\right]


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 Tr_ and Tr_ are two arbitrary selected elements from the same column q of Tr matrix, then, Tr matrix consists one fours of elements ( Tr_, Tr_, Tr_, Tr_), for which are satisfied the equations Tr_=Tr_ and Tr_ = Tr_. This property, named “Tr-property” is specific to Tr matrices. 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 ( Tr_, Tr_, Tr_, Tr_), p,q,u,v \in ,n. In is offered algorithm for creating Trs matrix using Hadamard product, (denoted by \circ ) of Tr matrix and n-dimensional
Hadamard matrix In mathematics, an Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are either +1 or −1 and whose rows are mutually orthogonal. In geometry, geometric terms, this means that each pair of r ...
whose rows (except the first one) are rearranged relative to the rows of Sylvester-Hadamard matrix in order R= , r_2, \dots, r_nT , r_2, \dots, r_n \in ,n/math>, for which the rows of the resulting Trs matrix are mutually orthogonal. Trs(X) = Tr(X)\circ H(R) Trs.^T=\parallel X\parallel^2.I_n where: * "\circ" denotes operation Hadamard product * I_n is n-dimensional Identity matrix. * H(R) is n-dimensional
Hadamard matrix In mathematics, an Hadamard matrix, named after the French mathematician Jacques Hadamard, is a square matrix whose entries are either +1 or −1 and whose rows are mutually orthogonal. In geometry, geometric terms, this means that each pair of r ...
, which rows are interchanged against the Sylvester-Hadamard matrix in given order R= , r_2, \dots, r_nT , r_2, \dots, r_n \in ,n/math> 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 that, if X is unit vector (i.e. \parallel X\parallel=1), then Trs matrix (obtained as it was described above) is matrix of
reflection Reflection or reflexion may refer to: Science and technology * Reflection (physics), a common wave phenomenon ** Specular reflection, mirror-like reflection of waves from a surface *** Mirror image, a reflection in a mirror or in water ** Diffuse r ...
.


Example of obtaining Trs matrix

Transpositions matrix with mutually orthogonal rows (Trs matrix) of order 4 for vector X = \begin x_1, x_2, x_3, x_4 \end^T is obtained as: Trs(X) = H(R) \circ Tr(X) = \begin 1 & 1 & 1 & 1 \\ 1 &-1 & 1 &-1 \\ 1 &-1 &-1 & 1 \\ 1 & 1 &-1 &-1 \\ \end\circ \begin x_1 & x_2 & x_3 & x_4 \\ x_2 & x_1 & x_4 & x_3 \\ x_3 & x_4 & x_1 & x_2 \\ x_4 & x_3 & x_2 & x_1 \\ \end= \begin x_1 & x_2 & x_3 & x_4 \\ x_2 &-x_1 & x_4 &-x_3 \\ x_3 &-x_4 &-x_1 & x_2 \\ x_4 & x_3 &-x_2 &-x_1 \\ \end where Tr(X) is Tr matrix, obtained from vector X, and "\circ" 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 = \left\, X \right\, ^2 \begin1 \\ 0 \\ 0 \\ 0\end which means that the Trs matrix rotates the vector X, from which it is derived, in the direction of the coordinate axis x_1 In 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

*
Symmetric matrix In linear algebra, a symmetric matrix is a square matrix that is equal to its transpose. Formally, Because equal matrices have equal dimensions, only square matrices can be symmetric. The entries of a symmetric matrix are symmetric with ...
*
Persymmetric matrix In mathematics, persymmetric matrix may refer to: # a square matrix which is symmetric with respect to the northeast-to-southwest diagonal (anti-diagonal); or # a square matrix such that the values on each line perpendicular to the main diagonal a ...
*
Orthogonal matrix In linear algebra, an orthogonal matrix, or orthonormal matrix, is a real square matrix whose columns and rows are orthonormal vectors. One way to express this is Q^\mathrm Q = Q Q^\mathrm = I, where is the transpose of and is the identi ...


References

# # # # # {{cite book, last=Zhelezov, first=O. I., title=''Determination of a Special Case of Symmetric Matrices and Their Applications'', year=2021, publisher=Current Topics on Mathematics and Computer Science Vol. 6, 29–45, isbn= 978-93-91473-89-1


External links

* http://article.sapub.org/10.5923.j.ajcam.20190904.03.html Matrices (mathematics)