pub fn solve_by_thomas(
    matrix: &Array2<f64>,
    b: &Array1<f64>
) -> Result<Vec<f64>, Error>
Expand description

General Information

A function that solves a linear problem of the form Ax=b via Thomas (tridiagonal) method in which A is a square matrix, b is a known vector and x is to be found.

Parameters

  • matrix - A square matrix represented by an Array2.
  • b - A vector result from matrix multiplication Ax = b represented by an Array1.