NCAR / tuv-x

Photolysis rate constant calculator
https://ncar.github.io/tuv-x/
Apache License 2.0
4 stars 2 forks source link

Implement Tridiagonal Linear System Solver in C++ #88

Closed AdityaDendukuri closed 5 months ago

AdityaDendukuri commented 5 months ago

Translate the fortran code for solving a linear system consisting of a tridiagonal matrix to C++. Add tests to verify the accuracy of the solution.

Acceptance Criteria

  1. Add large values to the diagonal elements of a matrix so that the conditional number is low.
  2. Make sure the relative error is smaller than 1.e-7 for single precision and 1.e-15 for double precision.