Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Compute and visualize pseudospectra of matrices (like eigtool)

Project description

# PseudoPy

PseudoPy computes and visualizes the pseudospectrum of a matrix. It is a Python version of the original [eigtool]( by Thomas G. Wright. The algorithms used in this package can be found in the book [Spectra and pseudospectra]( by [Nick Trefethen]( and [Mark Embree](

## Example
The pseudospectrum of the Grcar matrix looks like this:

![Pseudospectrum of Grcar matrix](grcar.png)

The above figure can be created with the following lines of code:
from pseudopy import compute, demo, visualize
from matplotlib import pyplot
from scipy.linalg import eigvals

A = demo.grcar(32).todense()

X, Y, Z = compute.evaluate_meshgrid(A,
real_min=-1, real_max=3, real_n=400,
imag_min=-3.5, imag_max=3.5, imag_n=400)

visualize.contour_meshgrid(X, Y, Z,
levels=[10**k for k in range(-4, 0)],

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pseudopy-1.0.0.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page