Skip to main content

solve_discrete_lyapunov

Function solve_discrete_lyapunov 

Source
pub fn solve_discrete_lyapunov<T: Scalar, S1: Data<Elem = T>, S2: Data<Elem = T>>(
    a: &ArrayBase<S1, Ix2>,
    q: &ArrayBase<S2, Ix2>,
) -> Result<Array2<T>>
Expand description

Solves the discrete Lyapunov equation A X Aᴴ − X + Q = 0 (SciPy’s linalg.solve_discrete_lyapunov). The solution is unique when no product of two eigenvalues of A (one conjugated) equals 1; for A with spectral radius below 1 and Q = B Bᴴ, X is the controllability Gramian Σ Aᵏ B Bᴴ (Aᴴ)ᵏ.