I have read about the Thomas algorithm. Right now, I am trying to use it to solve the following linear system
$$\begin{bmatrix} b_1 & c_1 & 0 & \dots & 0 & a_1\\ a_2 & b_ 2 & c_2 & 0 & \dots & 0\\ 0 & a_3 & b_3 & c_3 & 0 & \dots\\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots\\ c_n & 0 & \dots & 0 & a_n & b_n\end{bmatrix} \begin{bmatrix}x_1\\x_2\\x_3\\ \vdots\\x_n\end{bmatrix} = \begin{bmatrix}r_1\\r_2\\r_3\\ \vdots\\r_n\end{bmatrix}$$ I have not been able to work out an algorithm for this matrix. Can someone point me to some reference that I can read about this? Thank you.