qttools.lyapunov.spectral#
source module qttools.lyapunov.spectral
Classes
-
Spectral — A solver for the Lyapunov equation by using the matrix spectrum.
source class Spectral(num_ref_iterations: int = 3, warning_threshold: float = 0.1, eig_compute_location: str = 'numpy', reduce_sparsity: bool = True, use_pinned_memory: bool = True)
Bases : LyapunovSolver
A solver for the Lyapunov equation by using the matrix spectrum.
Initializes the spectral Lyapunov solver.
Parameters
-
num_ref_iterations : int, optional — The number of refinement iterations to perform.
-
warning_threshold : float, optional — The threshold for the relative recursion error to issue a warning.
-
eig_compute_location : str, optional — The location where to compute the eigenvalues and eigenvectors. Can be either "numpy" or "cupy". Only relevant if cupy is used.
-
reduce_sparsity : bool, optional — Whether to reduce the sparsity of the system matrix.
-
use_pinned_memory : bool, optional — Whether to use pinnend memory if cupy is used. Default is
True
.