pub fn solve_linear_system(a: &[f64], b: &[f64], n: usize) -> Vec<f64>Expand description
Simple Gaussian Elimination solver for dense linear systems. Solves $Ax = b$ where $A$ is an $n \times n$ matrix provided as a flat row-major slice.
§Arguments
a- The coefficient matrix $A$ (flat slice of size $n^2$).b- The right-hand side vector $b$ (slice of size $n$).n- The dimension of the system.
§Returns
A Vec<f64> containing the solution $x$.