Skip to main content

solve_circulant

Function solve_circulant 

Source
pub fn solve_circulant<T: Scalar>(
    c: &[T],
    b: &[T],
    tol: Option<f64>,
) -> Result<Array1<T>>
Expand description

Solves C x = b for the circulant matrix C with first column c in O(n log n) (SciPy’s solve_circulant): the DFT diagonalises every circulant matrix, C = F⁻¹ diag(F c) F, so x = F⁻¹ (F b / F c). An error is returned when some |F c| is below tol (default n ε max |F c|), where C is numerically singular.