Skip to main content

sqrtm

Function sqrtm 

Source
pub fn sqrtm<T: Scalar, S: Data<Elem = T>>(
    a: &ArrayBase<S, Ix2>,
) -> Result<Array2<Complex<f64>>>
Expand description

The principal square root X with X² = A and eigenvalues in the right half-plane (SciPy’s sqrtm), by the Schur method: A = Z T Zᴴ, X = Z R Zᴴ with R² = T triangular. Matrices with eigenvalues on the closed negative real axis have no principal square root; zero eigenvalues of multiplicity above one make it fail.