Function Repository Resource:

GershgorinDisks

Show the Gershgorin disks of a square matrix

Contributed by: Jan Mangaldan
 ResourceFunction["GershgorinDisks"][m] gives a Region representing the union of the Gershgorin disks of the square matrix m. ResourceFunction["GershgorinDisks"][m,out] gives a result of the type specified by out.

Details

"Gershgorin" is sometimes also spelled "Geršgorin" or "Gerschgorin".
The union of the Gershgorin disks encloses all the eigenvalues of the given matrix, and each eigenvalue is in at least one of the disks.
out can be any of the following:
 "Region" a Region representing the union of the Gershgorin disks "List" a list of Disk objects representing the Gershgorin disks
SparseArray objects and structured arrays can be used in ResourceFunction["GershgorinDisks"].

Examples

Basic Examples (2)

The Gershgorin disks of a machine-precision matrix:

 In[1]:=
 Out[1]=

Show the Gershgorin disks along with the eigenvalues:

 In[2]:=
 Out[2]=

Scope (3)

Gershgorin disks of an exact matrix:

 In[3]:=
 Out[3]=

List the individual disks comprising the region:

 In[4]:=
 Out[4]=

Gershgorin disks of a complex matrix:

 In[5]:=
 Out[5]=

List the individual disks comprising the region:

 In[6]:=
 Out[6]=

Gershgorin disks of a SparseArray:

 In[7]:=
 Out[7]=

Applications (3)

Compare the Gershgorin disks of an unsymmetric matrix and its transpose:

 In[8]:=
 Out[8]=

Show the intersection of the two sets of Gershgorin disks along with the eigenvalues:

 In[9]:=
 Out[9]=

A random matrix:

 In[10]:=
 Out[10]=

Use HessenbergDecomposition to transform it to a similar upper Hessenberg matrix:

 In[11]:=
 Out[11]=

Compare the Gershgorin disks of the original and transformed matrices:

 In[12]:=
 Out[12]=

Compare the Gershgorin disks of two different companion matrices of a given polynomial:

 In[13]:=
 Out[13]=

Properties and Relations (2)

The Gershgorin disks of a matrix enclose all of the matrix's eigenvalues:

 In[14]:=
 Out[14]=

The Gershgorin disks of a diagonal matrix is a set of disks with zero radius:

 In[15]:=
 Out[15]=
 In[16]:=
 Out[16]=

Version History

• 1.0.0 – 10 May 2021