Skip to main content

expm_multiply

Function expm_multiply 

Source
pub fn expm_multiply(a: &CsrMatrix, b: &[f64], t: f64) -> Result<Vec<f64>>
Expand description

e^{tA} b (SciPy’s expm_multiply at one time point). With μ = trace(A)/n and B = A − μI, e^{tA} b = e^{tμ} (e^{tB/s})^s b, and each factor is applied by the Taylor series Σ_{j≤m} (tB/s)^j b / j!, stopping early once two consecutive terms are negligible.