Misplaced Pages

Tridiagonal matrix algorithm

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Improved reduction for specific matrices

In numerical linear algebra, the tridiagonal matrix algorithm, also known as the Thomas algorithm (named after Llewellyn Thomas), is a simplified form of Gaussian elimination that can be used to solve tridiagonal systems of equations. A tridiagonal system for n unknowns may be written as

a i x i 1 + b i x i + c i x i + 1 = d i , {\displaystyle a_{i}x_{i-1}+b_{i}x_{i}+c_{i}x_{i+1}=d_{i},}

where a 1 = 0 {\displaystyle a_{1}=0} and c n = 0 {\displaystyle c_{n}=0} .

[ b 1 c 1 0 a 2 b 2 c 2 a 3 b 3 c n 1 0 a n b n ] [ x 1 x 2 x 3 x n ] = [ d 1 d 2 d 3 d n ] . {\displaystyle {\begin{bmatrix}b_{1}&c_{1}&&&0\\a_{2}&b_{2}&c_{2}&&\\&a_{3}&b_{3}&\ddots &\\&&\ddots &\ddots &c_{n-1}\\0&&&a_{n}&b_{n}\end{bmatrix}}{\begin{bmatrix}x_{1}\\x_{2}\\x_{3}\\\vdots \\x_{n}\end{bmatrix}}={\begin{bmatrix}d_{1}\\d_{2}\\d_{3}\\\vdots \\d_{n}\end{bmatrix}}.}

For such systems, the solution can be obtained in O ( n ) {\displaystyle O(n)} operations instead of O ( n 3 ) {\displaystyle O(n^{3})} required by Gaussian elimination. A first sweep eliminates the a i {\displaystyle a_{i}} 's, and then an (abbreviated) backward substitution produces the solution. Examples of such matrices commonly arise from the discretization of 1D Poisson equation and natural cubic spline interpolation.

Thomas' algorithm is not stable in general, but is so in several special cases, such as when the matrix is diagonally dominant (either by rows or columns) or symmetric positive definite; for a more precise characterization of stability of Thomas' algorithm, see Higham Theorem 9.12. If stability is required in the general case, Gaussian elimination with partial pivoting (GEPP) is recommended instead.

Method

The forward sweep consists of the computation of new coefficients as follows, denoting the new coefficients with primes:

c i = { c i b i , i = 1 , c i b i a i c i 1 , i = 2 , 3 , , n 1 {\displaystyle c'_{i}={\begin{cases}{\cfrac {c_{i}}{b_{i}}},&i=1,\\{\cfrac {c_{i}}{b_{i}-a_{i}c'_{i-1}}},&i=2,3,\dots ,n-1\end{cases}}}

and

d i = { d i b i , i = 1 , d i a i d i 1 b i a i c i 1 , i = 2 , 3 , , n . {\displaystyle d'_{i}={\begin{cases}{\cfrac {d_{i}}{b_{i}}},&i=1,\\{\cfrac {d_{i}-a_{i}d'_{i-1}}{b_{i}-a_{i}c'_{i-1}}},&i=2,3,\dots ,n.\end{cases}}}

The solution is then obtained by back substitution:

x n = d n , {\displaystyle x_{n}=d'_{n},}
x i = d i c i x i + 1 , i = n 1 , n 2 , , 1. {\displaystyle x_{i}=d'_{i}-c'_{i}x_{i+1},\quad i=n-1,n-2,\ldots ,1.}

The method above does not modify the original coefficient vectors, but must also keep track of the new coefficients. If the coefficient vectors may be modified, then an algorithm with less bookkeeping is:

For i = 2 , 3 , , n , {\displaystyle i=2,3,\dots ,n,} do

w = a i b i 1 , {\displaystyle w={\cfrac {a_{i}}{b_{i-1}}},}
b i := b i w c i 1 , {\displaystyle b_{i}:=b_{i}-wc_{i-1},}
d i := d i w d i 1 , {\displaystyle d_{i}:=d_{i}-wd_{i-1},}

followed by the back substitution

x n = d n b n , {\displaystyle x_{n}={\cfrac {d_{n}}{b_{n}}},}
x i = d i c i x i + 1 b i for  i = n 1 , n 2 , , 1. {\displaystyle x_{i}={\cfrac {d_{i}-c_{i}x_{i+1}}{b_{i}}}\quad {\text{for }}i=n-1,n-2,\dots ,1.}

The implementation as a C function, which uses scratch space to avoid modifying its inputs for a-c, allowing them to be reused:

void thomas(const int X, double x,
            const double a, const double b,
            const double c, double scratch) {
    /*
     solves Ax = d, where A is a tridiagonal matrix consisting of vectors a, b, c
     X = number of equations
     x = initially contains the input v, and returns x. indexed from 
     a = subdiagonal, indexed from 
     b = main diagonal, indexed from 
     c = superdiagonal, indexed from 
     scratch = scratch space of length X, provided by caller, allowing a, b, c to be const
     not performed in this example: manual expensive common subexpression elimination
     */
    scratch = c / b;
    x = x / b;
    /* loop from 1 to X - 1 inclusive */
    for (int ix = 1; ix < X; ix++) {
        if (ix < X-1){
        scratch = c / (b - a * scratch);
        }
        x = (x - a * x) / (b - a * scratch);
    }
    /* loop from X - 2 to 0 inclusive */
    for (int ix = X - 2; ix >= 0; ix--)
        x -= scratch * x;
}

Derivation

The derivation of the tridiagonal matrix algorithm is a special case of Gaussian elimination.

Suppose that the unknowns are x 1 , , x n {\displaystyle x_{1},\ldots ,x_{n}} , and that the equations to be solved are:

b 1 x 1 + c 1 x 2 = d 1 a i x i 1 + b i x i + c i x i + 1 = d i , i = 2 , , n 1 a n x n 1 + b n x n = d n . {\displaystyle {\begin{alignedat}{4}&&&b_{1}x_{1}&&+c_{1}x_{2}&&=d_{1}\\&a_{i}x_{i-1}&&+b_{i}x_{i}&&+c_{i}x_{i+1}&&=d_{i}\,,\quad i=2,\ldots ,n-1\\&a_{n}x_{n-1}&&+b_{n}x_{n}&&&&=d_{n}\,.\end{alignedat}}}

Consider modifying the second ( i = 2 {\displaystyle i=2} ) equation with the first equation as follows:

( equation 2 ) b 1 ( equation 1 ) a 2 {\displaystyle ({\mbox{equation 2}})\cdot b_{1}-({\mbox{equation 1}})\cdot a_{2}}

which would give:

( b 2 b 1 c 1 a 2 ) x 2 + c 2 b 1 x 3 = d 2 b 1 d 1 a 2 . {\displaystyle (b_{2}b_{1}-c_{1}a_{2})x_{2}+c_{2}b_{1}x_{3}=d_{2}b_{1}-d_{1}a_{2}.}

Note that x 1 {\displaystyle x_{1}} has been eliminated from the second equation. Using a similar tactic with the modified second equation on the third equation yields:

( b 3 ( b 2 b 1 c 1 a 2 ) c 2 b 1 a 3 ) x 3 + c 3 ( b 2 b 1 c 1 a 2 ) x 4 = d 3 ( b 2 b 1 c 1 a 2 ) ( d 2 b 1 d 1 a 2 ) a 3 . {\displaystyle (b_{3}(b_{2}b_{1}-c_{1}a_{2})-c_{2}b_{1}a_{3})x_{3}+c_{3}(b_{2}b_{1}-c_{1}a_{2})x_{4}=d_{3}(b_{2}b_{1}-c_{1}a_{2})-(d_{2}b_{1}-d_{1}a_{2})a_{3}.\,}

This time x 2 {\displaystyle x_{2}} was eliminated. If this procedure is repeated until the n t h {\displaystyle n^{th}} row; the (modified) n t h {\displaystyle n^{th}} equation will involve only one unknown, x n {\displaystyle x_{n}} . This may be solved for and then used to solve the ( n 1 ) t h {\displaystyle (n-1)^{th}} equation, and so on until all of the unknowns are solved for.

Clearly, the coefficients on the modified equations get more and more complicated if stated explicitly. By examining the procedure, the modified coefficients (notated with tildes) may instead be defined recursively:

a ~ i = 0 {\displaystyle {\tilde {a}}_{i}=0\,}
b ~ 1 = b 1 {\displaystyle {\tilde {b}}_{1}=b_{1}\,}
b ~ i = b i b ~ i 1 c ~ i 1 a i {\displaystyle {\tilde {b}}_{i}=b_{i}{\tilde {b}}_{i-1}-{\tilde {c}}_{i-1}a_{i}\,}
c ~ 1 = c 1 {\displaystyle {\tilde {c}}_{1}=c_{1}\,}
c ~ i = c i b ~ i 1 {\displaystyle {\tilde {c}}_{i}=c_{i}{\tilde {b}}_{i-1}\,}
d ~ 1 = d 1 {\displaystyle {\tilde {d}}_{1}=d_{1}\,}
d ~ i = d i b ~ i 1 d ~ i 1 a i . {\displaystyle {\tilde {d}}_{i}=d_{i}{\tilde {b}}_{i-1}-{\tilde {d}}_{i-1}a_{i}.\,}

To further hasten the solution process, b ~ i {\displaystyle {\tilde {b}}_{i}} may be divided out (if there's no division by zero risk), the newer modified coefficients, each notated with a prime, will be:

a i = 0 {\displaystyle a'_{i}=0\,}
b i = 1 {\displaystyle b'_{i}=1\,}
c 1 = c 1 b 1 {\displaystyle c'_{1}={\frac {c_{1}}{b_{1}}}\,}
c i = c i b i c i 1 a i {\displaystyle c'_{i}={\frac {c_{i}}{b_{i}-c'_{i-1}a_{i}}}\,}
d 1 = d 1 b 1 {\displaystyle d'_{1}={\frac {d_{1}}{b_{1}}}\,}
d i = d i d i 1 a i b i c i 1 a i . {\displaystyle d'_{i}={\frac {d_{i}-d'_{i-1}a_{i}}{b_{i}-c'_{i-1}a_{i}}}.\,}

This gives the following system with the same unknowns and coefficients defined in terms of the original ones above:

x i + c i x i + 1 = d i ;   i = 1 , , n 1 x n = d n ;   i = n . {\displaystyle {\begin{array}{lcl}x_{i}+c'_{i}x_{i+1}=d'_{i}\qquad &;&\ i=1,\ldots ,n-1\\x_{n}=d'_{n}\qquad &;&\ i=n.\\\end{array}}\,}

The last equation involves only one unknown. Solving it in turn reduces the next last equation to one unknown, so that this backward substitution can be used to find all of the unknowns:

x n = d n {\displaystyle x_{n}=d'_{n}\,}
x i = d i c i x i + 1 ;   i = n 1 , n 2 , , 1. {\displaystyle x_{i}=d'_{i}-c'_{i}x_{i+1}\qquad ;\ i=n-1,n-2,\ldots ,1.}

Variants

In some situations, particularly those involving periodic boundary conditions, a slightly perturbed form of the tridiagonal system may need to be solved:

a 1 x n + b 1 x 1 + c 1 x 2 = d 1 a i x i 1 + b i x i + c i x i + 1 = d i , i = 2 , , n 1 a n x n 1 + b n x n + c n x 1 = d n . {\displaystyle {\begin{alignedat}{4}&a_{1}x_{n}&&+b_{1}x_{1}&&+c_{1}x_{2}&&=d_{1}\\&a_{i}x_{i-1}&&+b_{i}x_{i}&&+c_{i}x_{i+1}&&=d_{i}\,,\quad i=2,\ldots ,n-1\\&a_{n}x_{n-1}&&+b_{n}x_{n}&&+c_{n}x_{1}&&=d_{n}\,.\end{alignedat}}}

In this case, we can make use of the Sherman–Morrison formula to avoid the additional operations of Gaussian elimination and still use the Thomas algorithm. The method requires solving a modified non-cyclic version of the system for both the input and a sparse corrective vector, and then combining the solutions. This can be done efficiently if both solutions are computed at once, as the forward portion of the pure tridiagonal matrix algorithm can be shared.

If we indicate by: A = [ b 1 c 1 a 1 a 2 b 2 c 2 a 3 b 3 c n 1 c n a n b n ] , x = [ x 1 x 2 x 3 x n ] , d = [ d 1 d 2 d 3 d n ] {\displaystyle A={\begin{bmatrix}b_{1}&c_{1}&&&a_{1}\\a_{2}&b_{2}&c_{2}&&\\&a_{3}&b_{3}&\ddots &\\&&\ddots &\ddots &c_{n-1}\\c_{n}&&&a_{n}&b_{n}\end{bmatrix}},x={\begin{bmatrix}x_{1}\\x_{2}\\x_{3}\\\vdots \\x_{n}\end{bmatrix}},d={\begin{bmatrix}d_{1}\\d_{2}\\d_{3}\\\vdots \\d_{n}\end{bmatrix}}}

Then the system to be solved is: A x = d {\displaystyle Ax=d}

In this case the coefficients a 1 {\displaystyle a_{1}} and c n {\displaystyle c_{n}} are, generally speaking, non-zero, so their presence does not allow to apply the Thomas algorithm directly. We can therefore consider B R n × n {\displaystyle B\in \mathbb {R} ^{n\times n}} and u , v R n {\displaystyle u,v\in \mathbb {R} ^{n}} as following: B = [ b 1 γ c 1 0 a 2 b 2 c 2 a 3 b 3 c n 1 0 a n b n c n a 1 γ ] , u = [ γ 0 0 c n ] , v = [ 1 0 0 a 1 / γ ] . {\displaystyle B={\begin{bmatrix}b_{1}-\gamma &c_{1}&&&0\\a_{2}&b_{2}&c_{2}&&\\&a_{3}&b_{3}&\ddots &\\&&\ddots &\ddots &c_{n-1}\\0&&&a_{n}&b_{n}-{\frac {c_{n}a_{1}}{\gamma }}\end{bmatrix}},u={\begin{bmatrix}\gamma \\0\\0\\\vdots \\c_{n}\end{bmatrix}},v={\begin{bmatrix}1\\0\\0\\\vdots \\a_{1}/\gamma \end{bmatrix}}.} Where γ R {\displaystyle \gamma \in \mathbb {R} } is a parameter to be chosen. The matrix A {\displaystyle A} can be reconstructed as A = B + u v T {\displaystyle A=B+uv^{\mathsf {T}}} . The solution is then obtained in the following way: first we solve two tridiagonal systems of equations applying the Thomas algorithm: B y = d B q = u {\displaystyle By=d\qquad \qquad Bq=u}

Then we reconstruct the solution x {\displaystyle x} using the Shermann-Morrison formula: x = A 1 d = ( B + u v T ) 1 d = B 1 d B 1 u v T B 1 1 + v T B 1 u d = y q v T y 1 + v T q {\displaystyle {\begin{aligned}x&=A^{-1}d=(B+uv^{T})^{-1}d=B^{-1}d-{\frac {B^{-1}uv^{T}B^{-1}}{1+v^{T}B^{-1}u}}d=y-{\frac {qv^{T}y}{1+v^{T}q}}\end{aligned}}}


The implementation as a C function, which uses scratch space to avoid modifying its inputs for a-c, allowing them to be reused:

void cyclic_thomas(const int X, double x, const double a, const double b, const double c, double cmod, double u) {
    /*
     solves Ax = v, where A is a cyclic tridiagonal matrix consisting of vectors a, b, c
     X = number of equations
     x = initially contains the input v, and returns x. indexed from 
     a = subdiagonal, regularly indexed from , a is lower left corner
     b = main diagonal, indexed from 
     c = superdiagonal, regularly indexed from , c is upper right
     cmod, u = scratch vectors each of length X
     */
    /* lower left and upper right corners of the cyclic tridiagonal system respectively */
    const double alpha = a;
    const double beta = c;
    /* arbitrary, but chosen such that division by zero is avoided */
    const double gamma = -b;
    cmod = c / (b - gamma);
    u = gamma / (b - gamma);
    x /= (b - gamma);
    /* loop from 1 to X - 2 inclusive */
    for (int ix = 1; ix + 1 < X; ix++) {
        const double m = 1.0 / (b - a * cmod);
        cmod = c * m;
        u = (0.0f  - a * u) * m;
        x = (x - a * x) * m;
    }
    /* handle X - 1 */
    const double m = 1.0 / (b - alpha * beta / gamma - a * cmod);
    u = (alpha    - a * u) * m;
    x = (x - a * x) * m;
    /* loop from X - 2 to 0 inclusive */
    for (int ix = X - 2; ix >= 0; ix--) {
        u -= cmod * u;
        x -= cmod * x;
    }
    const double fact = (x + x * alpha / gamma) / (1.0 + u + u * alpha / gamma);
    /* loop from 0 to X - 1 inclusive */
    for (int ix = 0; ix < X; ix++)
        x -= fact * u;
}

There is also another way to solve the slightly perturbed form of the tridiagonal system considered above. Let us consider two auxiliary linear systems of dimension ( n 1 ) × ( n 1 ) {\displaystyle (n-1)\times (n-1)} :           b 2 u 2 + c 2 u 3 = d 2 a 3 u 2 + b 3 u 3 + c 3 u 4 = d 3 a i u i 1 + b i u i + c i u i + 1 = d i a n u n 1 + b n u n = d n . i = 4 , , n 1           b 2 v 2 + c 2 v 3 = a 2 a 3 v 2 + b 3 v 3 + c 3 v 4 = 0 a i u i 1 + b i u i + c i u i + 1 = 0 a n v n 1 + b n v n = c n . i = 4 , , n 1 {\displaystyle {\begin{aligned}\qquad \ \ \ \ \ b_{2}u_{2}+c_{2}u_{3}&=d_{2}\\a_{3}u_{2}+b_{3}u_{3}+c_{3}u_{4}&=d_{3}\\a_{i}u_{i-1}+b_{i}u_{i}+c_{i}u_{i+1}&=d_{i}\\\dots \\a_{n}u_{n-1}+b_{n}u_{n}\qquad &=d_{n}\,.\end{aligned}}\quad i=4,\ldots ,n-1\qquad \qquad {\begin{aligned}\qquad \ \ \ \ \ b_{2}v_{2}+c_{2}v_{3}&=-a_{2}\\a_{3}v_{2}+b_{3}v_{3}+c_{3}v_{4}&=0\\a_{i}u_{i-1}+b_{i}u_{i}+c_{i}u_{i+1}&=0\\\dots \\a_{n}v_{n-1}+b_{n}v_{n}\qquad &=-c_{n}\,.\end{aligned}}\quad i=4,\ldots ,n-1}

For convenience, we additionally define u 1 = 0 {\displaystyle u_{1}=0} and v 1 = 1 {\displaystyle v_{1}=1} . We can now find the solutions { u 2 , u 3 , u n } {\displaystyle \{u_{2},u_{3}\dots ,u_{n}\}} and { v 2 , v 3 , v n } {\displaystyle \{v_{2},v_{3}\dots ,v_{n}\}} applying Thomas algorithm to the two auxiliary tridiagonal system.

The solution { x 1 , x 2 , x n } {\displaystyle \{x_{1},x_{2}\dots ,x_{n}\}} can be then represented in the form: x i = u i + x 1 v i i = 1 , 2 , , n {\displaystyle x_{i}=u_{i}+x_{1}v_{i}\qquad i=1,2,\dots ,n}

Indeed, multiplying each equation of the second auxiliary system by x 1 {\displaystyle x_{1}} , adding with the corresponding equation of the first auxiliary system and using the representation x i = u i + x 1 v i {\displaystyle x_{i}=u_{i}+x_{1}v_{i}} , we immediately see that equations number 2 {\displaystyle 2} through n {\displaystyle n} of the original system are satisfied; it only remains to satisfy equation number 1 {\displaystyle 1} . To do so, consider formula for i = 2 {\displaystyle i=2} and i = n {\displaystyle i=n} and substitute x 2 = u 2 + x 1 v 2 {\displaystyle x_{2}=u_{2}+x_{1}v_{2}} and x n = u n + x 1 v n {\displaystyle x_{n}=u_{n}+x_{1}v_{n}} into the first equation of the original system. This yields one scalar equation for x 1 {\displaystyle x_{1}} : b 1 x 1 + c 1 ( u 2 + x 1 v 2 ) + a 1 ( u n + x 1 v n ) = d 1 {\displaystyle b_{1}x_{1}+c_{1}(u_{2}+x_{1}v_{2})+a_{1}(u_{n}+x_{1}v_{n})=d_{1}}

As such, we find: x 1 = d 1 a 1 u n c 1 u 2 b 1 + a 1 v n + c 1 v 2 {\displaystyle x_{1}={\frac {d_{1}-a_{1}u_{n}-c_{1}u_{2}}{b_{1}+a_{1}v_{n}+c_{1}v_{2}}}}

The implementation as a C function, which uses scratch space to avoid modifying its inputs for a-c, allowing them to be reused:

void cyclic_thomas(const int X, double x, const double a, const double b, const double c, double cmod, double v) {
    /* first solve a system of length X - 1 for two right hand sides, ignoring ix == 0 */
    cmod = c / b;
    v = -a / b;
    x = x / b;
    /* loop from 2 to X - 1 inclusive */
    for (int ix = 2; ix < X - 1; ix++) {
        const double m = 1.0 / (b - a * cmod);
        cmod = c * m;
        v = (0.0f  - a * v) * m;
        x = (x - a * x) * m;
    }
    /* handle X - 1 */
    const double m = 1.0 / (b - a * cmod);
    cmod = c * m;
    v = (-c    - a * v) * m;
    x = (x - a * x) * m;
    /* loop from X - 2 to 1 inclusive */
    for (int ix = X - 2; ix >= 1; ix--) {
        v -= cmod * v;
        x -= cmod * x;
    }
    x = (x - a * x - c * x) / (b + a * v + c * v);
    /* loop from 1 to X - 1 inclusive */
    for (int ix = 1; ix < X; ix++)
        x += x * v;
}

In both cases the auxiliary systems to be solved are genuinely tri-diagonal, so the overall computational complexity of solving system A x = d {\displaystyle Ax=d} remains linear with the respect to the dimension of the system n {\displaystyle n} , that is O ( n ) {\displaystyle O(n)} arithmetic operations.

In other situations, the system of equations may be block tridiagonal (see block matrix), with smaller submatrices arranged as the individual elements in the above matrix system (e.g., the 2D Poisson problem). Simplified forms of Gaussian elimination have been developed for these situations.

The textbook Numerical Mathematics by Alfio Quarteroni, Sacco and Saleri, lists a modified version of the algorithm which avoids some of the divisions (using instead multiplications), which is beneficial on some computer architectures.

Parallel tridiagonal solvers have been published for many vector and parallel architectures, including GPUs

For an extensive treatment of parallel tridiagonal and block tridiagonal solvers see

References

  1. Pradip Niyogi (2006). Introduction to Computational Fluid Dynamics. Pearson Education India. p. 76. ISBN 978-81-7758-764-7.
  2. ^ Biswa Nath Datta (2010). Numerical Linear Algebra and Applications, Second Edition. SIAM. p. 162. ISBN 978-0-89871-765-5.
  3. Nicholas J. Higham (2002). Accuracy and Stability of Numerical Algorithms: Second Edition. SIAM. p. 175. ISBN 978-0-89871-802-7.
  4. Batista, Milan; Ibrahim Karawia, Abdel Rahman A. (2009). "The use of the Sherman–Morrison–Woodbury formula to solve cyclic block tri-diagonal and cyclic block penta-diagonal linear systems of equations". Applied Mathematics and Computation. 210 (2): 558–563. doi:10.1016/j.amc.2009.01.003. ISSN 0096-3003.
  5. Ryaben’kii, Victor S.; Tsynkov, Semyon V. (2006-11-02), "Introduction", A Theoretical Introduction to Numerical Analysis, Chapman and Hall/CRC, pp. 1–19, doi:10.1201/9781420011166-1, ISBN 978-0-429-14339-7, retrieved 2022-05-25
  6. Quarteroni, Alfio; Sacco, Riccardo; Saleri, Fausto (2007). "Section 3.8". Numerical Mathematics. Springer, New York. ISBN 978-3-540-34658-6.
  7. Chang, L.-W.; Hwu, W,-M. (2014). "A guide for implementing tridiagonal solvers on GPUs". In V. Kidratenko (ed.). Numerical Computations with GPUs. Springer. ISBN 978-3-319-06548-9.{{cite conference}}: CS1 maint: multiple names: authors list (link)
  8. Venetis, I.E.; Kouris, A.; Sobczyk, A.; Gallopoulos, E.; Sameh, A. (2015). "A direct tridiagonal solver based on Givens rotations for GPU architectures". Parallel Computing. 49: 101–116. doi:10.1016/j.parco.2015.03.008.
  9. Gallopoulos, E.; Philippe, B.; Sameh, A.H. (2016). "Chapter 5". Parallelism in Matrix Computations. Springer. ISBN 978-94-017-7188-7.
  • Press, W. H.; Teukolsky, S. A.; Vetterling, W. T.; Flannery, B. P. (2007). "Section 2.4". Numerical Recipes: The Art of Scientific Computing (3rd ed.). New York: Cambridge University Press. ISBN 978-0-521-88068-8.
Numerical linear algebra
Key concepts
Problems
Hardware
Software
Category: