Skip to main content

expm

Function expm 

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

The matrix exponential eᴬ = I + A + A²/2! + … (SciPy’s linalg.expm).

Scaling and squaring (Higham 2005): choose the lowest Padé degree m ∈ {3, 5, 7, 9, 13} accurate to rounding for ‖A‖₁, or, for larger norms, scale A by 2⁻ˢ until ‖A‖₁ ≤ θ₁₃; evaluate r_m(A) = (V − U)⁻¹ (V + U) from the even part V and odd part U of the Padé numerator; and square the result s times.