GTReorderMatrix

GTReorderMatrix[dimension,list] gives a matrix of dimension to interchange rows and colums in a matrix. list consists of pairs of indices, defining the reordering.

DetailsDetails

  • Reordering of a matrix can be performed by matrix multiplication. The module creates a matrix T to reorder rows and columns simultaneously.
  • A' = T A T
  • Such a reordering of a matrix is sometimes useful to change the structure of tight-binding Hamiltonians.
  • W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica, chapter 9.7.4.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

First load the package:

In[1]:=
Click for copyable input

A simple 4×4 matrix is used as a test case.

In[2]:=
Click for copyable input
Out[2]//MatrixForm=

Interchange 2nd and 3rd row and column.

In[3]:=
Click for copyable input
Out[3]//MatrixForm=
In[4]:=
Click for copyable input
Out[4]//MatrixForm=