Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Show the Gershgorin disks of a square matrix
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. |
| "Region" | a Region representing the union of the Gershgorin disks |
| "List" | a list of Disk objects representing the Gershgorin disks |
The Gershgorin disks of a machine-precision matrix:
| In[1]:= |
| Out[1]= | ![]() |
Show the Gershgorin disks along with the eigenvalues:
| In[2]:= |
| Out[2]= | ![]() |
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]= | ![]() |
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]= | ![]() |
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]= |
This work is licensed under a Creative Commons Attribution 4.0 International License