Function direct_solve
Source pub fn direct_solve(
a: &Array2<Complex64>,
b: &Array1<Complex64>,
) -> DirectSolution
Expand description
Solve Ax = b using LU factorization
§Arguments
a - Coefficient matrix (n × n)
b - Right-hand side vector (n)
§Returns
Solution struct containing x and success status
§Example
ⓘlet solution = direct_solve(&matrix, &rhs);
if solution.success {
println!("Solution: {:?}", solution.x);
}