Skip to main content

solve_sylvester

Function solve_sylvester 

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

Solves the Sylvester equation A X + X B = Q for X (SciPy’s linalg.solve_sylvester), with A n × n, B m × m and Q n × m. The solution is unique when no eigenvalue of A is the negative of an eigenvalue of B; otherwise LinalgError::Singular is returned.