Lanczos algorithm
The Lanczos algorithm is an iterative method devised by Cornelius Lanczos that is an adaptation of power methods to find the [math]\displaystyle{ m }[/math] "most useful" (tending towards extreme highest/lowest) eigenvalues and eigenvectors of an [math]\displaystyle{ n \times n }[/math] Hermitian matrix, where [math]\displaystyle{ m }[/math] is often but not necessarily much smaller than [math]\displaystyle{ n }[/math].[1] Although computationally efficient in principle, the method as initially formulated was not useful, due to its numerical instability.
In 1970, Ojalvo and Newman showed how to make the method numerically stable and applied it to the solution of very large engineering structures subjected to dynamic loading.[2] This was achieved using a method for purifying the Lanczos vectors (i.e. by repeatedly reorthogonalizing each newly generated vector with all previously generated ones)[2] to any degree of accuracy, which when not performed, produced a series of vectors that were highly contaminated by those associated with the lowest natural frequencies.
In their original work, these authors also suggested how to select a starting vector (i.e. use a random-number generator to select each element of the starting vector) and suggested an empirically determined method for determining [math]\displaystyle{ m }[/math], the reduced number of vectors (i.e. it should be selected to be approximately 1.5 times the number of accurate eigenvalues desired). Soon thereafter their work was followed by Paige, who also provided an error analysis.[3][4] In 1988, Ojalvo produced a more detailed history of this algorithm and an efficient eigenvalue error test.[5]
The algorithm
- Input a Hermitian matrix [math]\displaystyle{ A }[/math] of size [math]\displaystyle{ n \times n }[/math], and optionally a number of iterations [math]\displaystyle{ m }[/math] (as default, let [math]\displaystyle{ m=n }[/math]).
- Strictly speaking, the algorithm does not need access to the explicit matrix, but only a function [math]\displaystyle{ v \mapsto A v }[/math] that computes the product of the matrix by an arbitrary vector. This function is called at most [math]\displaystyle{ m }[/math] times.
- Output an [math]\displaystyle{ n \times m }[/math] matrix [math]\displaystyle{ V }[/math] with orthonormal columns and a tridiagonal real symmetric matrix [math]\displaystyle{ T = V^* A V }[/math] of size [math]\displaystyle{ m \times m }[/math]. If [math]\displaystyle{ m=n }[/math], then [math]\displaystyle{ V }[/math] is unitary, and [math]\displaystyle{ A = V T V^* }[/math].
- Warning The Lanczos iteration is prone to numerical instability. When executed in non-exact arithmetic, additional measures (as outlined in later sections) should be taken to ensure validity of the results.
- Let [math]\displaystyle{ v_1 \in \mathbb{C}^n }[/math] be an arbitrary vector with Euclidean norm [math]\displaystyle{ 1 }[/math].
- Abbreviated initial iteration step:
- Let [math]\displaystyle{ w_1' = A v_1 }[/math].
- Let [math]\displaystyle{ \alpha_1 = w_1'^* v_1 }[/math].
- Let [math]\displaystyle{ w_1 = w_1' - \alpha_1 v_1 }[/math].
- For [math]\displaystyle{ j=2,\dots,m }[/math] do:
- Let [math]\displaystyle{ \beta_j = \| w_{j-1} \| }[/math] (also Euclidean norm).
- If [math]\displaystyle{ \beta_j \neq 0 }[/math], then let [math]\displaystyle{ v_j = w_{j-1} / \beta_j }[/math],
- else pick as [math]\displaystyle{ v_j }[/math] an arbitrary vector with Euclidean norm [math]\displaystyle{ 1 }[/math] that is orthogonal to all of [math]\displaystyle{ v_1,\dots,v_{j-1} }[/math].
- Let [math]\displaystyle{ w_j' = A v_j }[/math].
- Let [math]\displaystyle{ \alpha_j = w_j'^* v_j }[/math].
- Let [math]\displaystyle{ w_j = w_j' - \alpha_j v_j - \beta_j v_{j-1} }[/math].
- Let [math]\displaystyle{ V }[/math] be the matrix with columns [math]\displaystyle{ v_1,\dots,v_m }[/math]. Let [math]\displaystyle{ T = \begin{pmatrix} \alpha_1 & \beta_2 & & & & 0 \\ \beta_2 & \alpha_2 & \beta_3 & & & \\ & \beta_3 & \alpha_3 & \ddots & & \\ & & \ddots & \ddots & \beta_{m-1} & \\ & & & \beta_{m-1} & \alpha_{m-1} & \beta_m \\ 0 & & & & \beta_m & \alpha_m \\ \end{pmatrix} }[/math].
- Note [math]\displaystyle{ A v_j = w_j' = \beta_{j+1} v_{j+1} + \alpha_j v_j + \beta_j v_{j-1} }[/math] for [math]\displaystyle{ 2 \lt j \lt m }[/math].
There are in principle four ways to write the iteration procedure. Paige and other works show that the above order of operations is the most numerically stable.[6][7] In practice the initial vector [math]\displaystyle{ v_1 }[/math] may be taken as another argument of the procedure, with [math]\displaystyle{ \beta_j=0 }[/math] and indicators of numerical imprecision being included as additional loop termination conditions.
Not counting the matrix–vector multiplication, each iteration does [math]\displaystyle{ O(n) }[/math] arithmetical operations. The matrix–vector multiplication can be done in [math]\displaystyle{ O(dn) }[/math] arithmetical operations where [math]\displaystyle{ d }[/math] is the average number of nonzero elements in a row. The total complexity is thus [math]\displaystyle{ O(dmn) }[/math], or [math]\displaystyle{ O(dn^2) }[/math] if [math]\displaystyle{ m=n }[/math]; the Lanczos algorithm can be very fast for sparse matrices. Schemes for improving numerical stability are typically judged against this high performance.
The vectors [math]\displaystyle{ v_j }[/math] are called Lanczos vectors. The vector [math]\displaystyle{ w_j' }[/math] is not used after [math]\displaystyle{ w_j }[/math] is computed, and the vector [math]\displaystyle{ w_j }[/math] is not used after [math]\displaystyle{ v_{j+1} }[/math] is computed. Hence one may use the same storage for all three. Likewise, if only the tridiagonal matrix [math]\displaystyle{ T }[/math] is sought, then the raw iteration does not need [math]\displaystyle{ v_{j-1} }[/math] after having computed [math]\displaystyle{ w_j }[/math], although some schemes for improving the numerical stability would need it later on. Sometimes the subsequent Lanczos vectors are recomputed from [math]\displaystyle{ v_1 }[/math] when needed.
Application to the eigenproblem
The Lanczos algorithm is most often brought up in the context of finding the eigenvalues and eigenvectors of a matrix, but whereas an ordinary diagonalization of a matrix would make eigenvectors and eigenvalues apparent from inspection, the same is not true for the tridiagonalization performed by the Lanczos algorithm; nontrivial additional steps are needed to compute even a single eigenvalue or eigenvector. Nonetheless, applying the Lanczos algorithm is often a significant step forward in computing the eigendecomposition. If [math]\displaystyle{ \lambda }[/math] is an eigenvalue of [math]\displaystyle{ A }[/math], and if [math]\displaystyle{ T x = \lambda x }[/math] ([math]\displaystyle{ x }[/math] is an eigenvector of [math]\displaystyle{ T }[/math]) then [math]\displaystyle{ y = V x }[/math] is the corresponding eigenvector of [math]\displaystyle{ A }[/math] (since [math]\displaystyle{ A y = A V x = V T V^* V x = V T I x = V T x = V (\lambda x) = \lambda V x = \lambda y }[/math]). Thus the Lanczos algorithm transforms the eigendecomposition problem for [math]\displaystyle{ A }[/math] into the eigendecomposition problem for [math]\displaystyle{ T }[/math].
- For tridiagonal matrices, there exist a number of specialised algorithms, often with better computational complexity than general-purpose algorithms. For example, if [math]\displaystyle{ T }[/math] is an [math]\displaystyle{ m \times m }[/math] tridiagonal symmetric matrix then:
- The continuant recursion allows computing the characteristic polynomial in [math]\displaystyle{ O(m^2) }[/math] operations, and evaluating it at a point in [math]\displaystyle{ O(m) }[/math] operations.
- The divide-and-conquer eigenvalue algorithm can be used to compute the entire eigendecomposition of [math]\displaystyle{ T }[/math] in [math]\displaystyle{ O(m^2) }[/math] operations.
- The Fast Multipole Method[8] can compute all eigenvalues in just [math]\displaystyle{ O(m \log m) }[/math] operations.
- Some general eigendecomposition algorithms, notably the QR algorithm, are known to converge faster for tridiagonal matrices than for general matrices. Asymptotic complexity of tridiagonal QR is [math]\displaystyle{ O(m^2) }[/math] just as for the divide-and-conquer algorithm (though the constant factor may be different); since the eigenvectors together have [math]\displaystyle{ m^2 }[/math] elements, this is asymptotically optimal.
- Even algorithms whose convergence rates are unaffected by unitary transformations, such as the power method and inverse iteration, may enjoy low-level performance benefits from being applied to the tridiagonal matrix [math]\displaystyle{ T }[/math] rather than the original matrix [math]\displaystyle{ A }[/math]. Since [math]\displaystyle{ T }[/math] is very sparse with all nonzero elements in highly predictable positions, it permits compact storage with excellent performance vis-à-vis caching. Likewise, [math]\displaystyle{ T }[/math] is a real matrix with all eigenvectors and eigenvalues real, whereas [math]\displaystyle{ A }[/math] in general may have complex elements and eigenvectors, so real arithmetic is sufficient for finding the eigenvectors and eigenvalues of [math]\displaystyle{ T }[/math].
- If [math]\displaystyle{ n }[/math] is very large, then reducing [math]\displaystyle{ m }[/math] so that [math]\displaystyle{ T }[/math] is of a manageable size will still allow finding the more extreme eigenvalues and eigenvectors of [math]\displaystyle{ A }[/math]; in the [math]\displaystyle{ m \ll n }[/math] region, the Lanczos algorithm can be viewed as a lossy compression scheme for Hermitian matrices, that emphasises preserving the extreme eigenvalues.
The combination of good performance for sparse matrices and the ability to compute several (without computing all) eigenvalues are the main reasons for choosing to use the Lanczos algorithm.
Application to tridiagonalization
Though the eigenproblem is often the motivation for applying the Lanczos algorithm, the operation the algorithm primarily performs is tridiagonalization of a matrix, for which numerically stable Householder transformations have been favoured since the 1950s. During the 1960s the Lanczos algorithm was disregarded. Interest in it was rejuvenated by the Kaniel–Paige convergence theory and the development of methods to prevent numerical instability, but the Lanczos algorithm remains the alternative algorithm that one tries only if Householder is not satisfactory.[9]
Aspects in which the two algorithms differ include:
- Lanczos takes advantage of [math]\displaystyle{ A }[/math] being a sparse matrix, whereas Householder does not, and will generate fill-in.
- Lanczos works throughout with the original matrix [math]\displaystyle{ A }[/math] (and has no problem with it being known only implicitly), whereas raw Householder wants to modify the matrix during the computation (although that can be avoided).
- Each iteration of the Lanczos algorithm produces another column of the final transformation matrix [math]\displaystyle{ V }[/math], whereas an iteration of Householder produces another factor in a unitary factorisation [math]\displaystyle{ Q_1 Q_2 \dots Q_n }[/math] of [math]\displaystyle{ V }[/math]. Each factor is however determined by a single vector, so the storage requirements are the same for both algorithms, and [math]\displaystyle{ V = Q_1 Q_2 \dots Q_n }[/math] can be computed in [math]\displaystyle{ O(n^3) }[/math] time.
- Householder is numerically stable, whereas raw Lanczos is not.
- Lanczos is highly parallel, with only [math]\displaystyle{ O(n) }[/math] points of synchronisation (the computations of [math]\displaystyle{ \alpha_j }[/math] and [math]\displaystyle{ \beta_j }[/math]). Householder is less parallel, having a sequence of [math]\displaystyle{ O(n^2) }[/math] scalar quantities computed that each depend on the previous quantity in the sequence.
Derivation of the algorithm
There are several lines of reasoning which lead to the Lanczos algorithm.
A more provident power method
The power method for finding the eigenvalue of largest magnitude and a corresponding eigenvector of a matrix [math]\displaystyle{ A }[/math] is roughly
- Pick a random vector [math]\displaystyle{ u_1 \neq 0 }[/math].
- For [math]\displaystyle{ j \geqslant 1 }[/math] (until the direction of [math]\displaystyle{ u_j }[/math] has converged) do:
- Let [math]\displaystyle{ u_{j+1}' = A u_j. }[/math]
- Let [math]\displaystyle{ u_{j+1} = u_{j+1}' / \| u_{j+1}' \|. }[/math]
- In the large [math]\displaystyle{ j }[/math] limit, [math]\displaystyle{ u_j }[/math] approaches the normed eigenvector corresponding to the largest magnitude eigenvalue.
A critique that can be raised against this method is that it is wasteful: it spends a lot of work (the matrix–vector products in step 2.1) extracting information from the matrix [math]\displaystyle{ A }[/math], but pays attention only to the very last result; implementations typically use the same variable for all the vectors [math]\displaystyle{ u_j }[/math], having each new iteration overwrite the results from the previous one. It may be desirable to instead keep all the intermediate results and organise the data.
One piece of information that trivially is available from the vectors [math]\displaystyle{ u_j }[/math] is a chain of Krylov subspaces. One way of stating that without introducing sets into the algorithm is to claim that it computes
- a subset [math]\displaystyle{ \{v_j\}_{j=1}^m }[/math] of a basis of [math]\displaystyle{ \Complex^n }[/math] such that [math]\displaystyle{ Ax \in \operatorname{span}(v_1,\dotsc,v_{j+1}) }[/math] for every [math]\displaystyle{ x \in \operatorname{span}(v_1,\dotsc,v_j) }[/math] and all [math]\displaystyle{ 1 \leqslant j \lt m; }[/math]
this is trivially satisfied by [math]\displaystyle{ v_j = u_j }[/math] as long as [math]\displaystyle{ u_j }[/math] is linearly independent of [math]\displaystyle{ u_1,\dotsc,u_{j-1} }[/math] (and in the case that there is such a dependence then one may continue the sequence by picking as [math]\displaystyle{ v_j }[/math] an arbitrary vector linearly independent of [math]\displaystyle{ u_1,\dotsc,u_{j-1} }[/math]). A basis containing the [math]\displaystyle{ u_j }[/math] vectors is however likely to be numerically ill-conditioned, since this sequence of vectors is by design meant to converge to an eigenvector of [math]\displaystyle{ A }[/math]. To avoid that, one can combine the power iteration with a Gram–Schmidt process, to instead produce an orthonormal basis of these Krylov subspaces.
- Pick a random vector [math]\displaystyle{ u_1 }[/math] of Euclidean norm [math]\displaystyle{ 1 }[/math]. Let [math]\displaystyle{ v_1 = u_1 }[/math].
- For [math]\displaystyle{ j = 1,\dotsc,m-1 }[/math] do:
- Let [math]\displaystyle{ u_{j+1}' = A u_j }[/math].
- For all [math]\displaystyle{ k = 1, \dotsc, j }[/math] let [math]\displaystyle{ g_{k,j} = v_k^* u_{j+1}' }[/math]. (These are the coordinates of [math]\displaystyle{ A u_j = u_{j+1}' }[/math] with respect to the basis vectors [math]\displaystyle{ v_1,\dotsc,v_j }[/math].)
- Let [math]\displaystyle{ w_{j+1} = u_{j+1}' - \sum_{k=1}^j g_{k,j} v_k }[/math]. (Cancel the component of [math]\displaystyle{ u_{j+1}' }[/math] that is in [math]\displaystyle{ \operatorname{span}(v_1,\dotsc,v_j) }[/math].)
- If [math]\displaystyle{ w_{j+1} \neq 0 }[/math] then let [math]\displaystyle{ u_{j+1} = u_{j+1}' / \| u_{j+1}' \| }[/math] and [math]\displaystyle{ v_{j+1} = w_{j+1} / \| w_{j+1} \| }[/math],
- otherwise pick as [math]\displaystyle{ u_{j+1} = v_{j+1} }[/math] an arbitrary vector of Euclidean norm [math]\displaystyle{ 1 }[/math] that is orthogonal to all of [math]\displaystyle{ v_1,\dotsc,v_j }[/math].
The relation between the power iteration vectors [math]\displaystyle{ u_j }[/math] and the orthogonal vectors [math]\displaystyle{ v_j }[/math] is that
- [math]\displaystyle{ A u_j = \| u_{j+1}'\| u_{j+1} = u_{j+1}' = w_{j+1} + \sum_{k=1}^j g_{k,j} v_k = \| w_{j+1}\| v_{j+1} + \sum_{k=1}^j g_{k,j} v_k }[/math].
Here it may be observed that we do not actually need the [math]\displaystyle{ u_j }[/math] vectors to compute these [math]\displaystyle{ v_j }[/math], because [math]\displaystyle{ u_j - v_j \in \operatorname{span}(v_1,\dotsc,v_{j-1}) }[/math] and therefore the difference between [math]\displaystyle{ u_{j+1}' = A u_j }[/math] and [math]\displaystyle{ w_{j+1}' = A v_j }[/math] is in [math]\displaystyle{ \operatorname{span}(v_1,\dotsc,v_j) }[/math], which is cancelled out by the orthogonalisation process. Thus the same basis for the chain of Krylov subspaces is computed by
- Pick a random vector [math]\displaystyle{ v_1 }[/math] of Euclidean norm [math]\displaystyle{ 1 }[/math].
- For [math]\displaystyle{ j = 1,\dotsc,m-1 }[/math] do:
- Let [math]\displaystyle{ w_{j+1}' = A v_j }[/math].
- For all [math]\displaystyle{ k = 1, \dotsc, j }[/math] let [math]\displaystyle{ h_{k,j} = v_k^* w_{j+1}' }[/math].
- Let [math]\displaystyle{ w_{j+1} = w_{j+1}' - \sum_{k=1}^j h_{k,j} v_k }[/math].
- Let [math]\displaystyle{ h_{j+1,j} = \| w_{j+1} \| }[/math].
- If [math]\displaystyle{ h_{j+1,j} \neq 0 }[/math] then let [math]\displaystyle{ v_{j+1} = w_{j+1} / h_{j+1,j} }[/math],
- otherwise pick as [math]\displaystyle{ v_{j+1} }[/math] an arbitrary vector of Euclidean norm [math]\displaystyle{ 1 }[/math] that is orthogonal to all of [math]\displaystyle{ v_1,\dotsc,v_j }[/math].
A priori the coefficients [math]\displaystyle{ h_{k,j} }[/math] satisfy
- [math]\displaystyle{ A v_j = \sum_{k=1}^{j+1} h_{k,j} v_k }[/math] for all [math]\displaystyle{ j \lt m }[/math];
the definition [math]\displaystyle{ h_{j+1,j} = \| w_{j+1} \| }[/math] may seem a bit odd, but fits the general pattern [math]\displaystyle{ h_{k,j} = v_k^* w_{j+1}' }[/math] since
- [math]\displaystyle{ v_{j+1}^* w_{j+1}' = v_{j+1}^* w_{j+1} = \| w_{j+1} \| v_{j+1}^* v_{j+1} = \| w_{j+1} \|. }[/math]
Because the power iteration vectors [math]\displaystyle{ u_j }[/math] that were eliminated from this recursion satisfy [math]\displaystyle{ u_j \in \operatorname{span}(v_1,\ldots,v_j), }[/math] the vectors [math]\displaystyle{ \{v_j\}_{j=1}^m }[/math] and coefficients [math]\displaystyle{ h_{k,j} }[/math] contain enough information from [math]\displaystyle{ A }[/math] that all of [math]\displaystyle{ u_1,\ldots,u_m }[/math] can be computed, so nothing was lost by switching vectors. (Indeed, it turns out that the data collected here give significantly better approximations of the largest eigenvalue than one gets from an equal number of iterations in the power method, although that is not necessarily obvious at this point.)
This last procedure is the Arnoldi iteration. The Lanczos algorithm then arises as the simplification one gets from eliminating calculation steps that turn out to be trivial when [math]\displaystyle{ A }[/math] is Hermitian—in particular most of the [math]\displaystyle{ h_{k,j} }[/math] coefficients turn out to be zero.
Elementarily, if [math]\displaystyle{ A }[/math] is Hermitian then
- [math]\displaystyle{ h_{k,j} = v_k^* w_{j+1}' = v_k^* A v_j = v_k^* A^* v_j = (A v_k)^* v_j. }[/math]
For [math]\displaystyle{ k \lt j-1 }[/math] we know that [math]\displaystyle{ A v_k \in \operatorname{span}(v_1,\ldots,v_{j-1}) }[/math], and since [math]\displaystyle{ v_j }[/math] by construction is orthogonal to this subspace, this inner product must be zero. (This is essentially also the reason why sequences of orthogonal polynomials can always be given a three-term recurrence relation.) For [math]\displaystyle{ k = j-1 }[/math] one gets
- [math]\displaystyle{ h_{j-1,j} = (A v_{j-1})^* v_j = \overline{v_j^* A v_{j-1} } = \overline{ h_{j,j-1} } = h_{j,j-1} }[/math]
since the latter is real on account of being the norm of a vector. For [math]\displaystyle{ k = j }[/math] one gets
- [math]\displaystyle{ h_{j,j} = (A v_j)^* v_j = \overline{v_j^* A v_j } = \overline{h_{j,j}}, }[/math]
meaning this is real too.
More abstractly, if [math]\displaystyle{ V }[/math] is the matrix with columns [math]\displaystyle{ v_1,\ldots,v_m }[/math] then the numbers [math]\displaystyle{ h_{k,j} }[/math] can be identified as elements of the matrix [math]\displaystyle{ H = V^*AV }[/math], and [math]\displaystyle{ h_{k,j} = 0 }[/math] for [math]\displaystyle{ k \gt j+1; }[/math] the matrix [math]\displaystyle{ H }[/math] is upper Hessenberg. Since
- [math]\displaystyle{ H^* = \left (V^* A V \right )^* = V^* A^* V = V^* A V = H }[/math]
the matrix [math]\displaystyle{ H }[/math] is Hermitian. This implies that [math]\displaystyle{ H }[/math] is also lower Hessenberg, so it must in fact be tridiagional. Being Hermitian, its main diagonal is real, and since its first subdiagonal is real by construction, the same is true for its first superdiagonal. Therefore, [math]\displaystyle{ H }[/math] is a real, symmetric matrix—the matrix [math]\displaystyle{ T }[/math] of the Lanczos algorithm specification.
Simultaneous approximation of extreme eigenvalues
One way of characterising the eigenvectors of a Hermitian matrix [math]\displaystyle{ A }[/math] is as stationary points of the Rayleigh quotient
- [math]\displaystyle{ r(x) = \frac{x^* A x} {x^* x}, \qquad x \in\Complex^n. }[/math]
In particular, the largest eigenvalue [math]\displaystyle{ \lambda_\max }[/math] is the global maximum of [math]\displaystyle{ r }[/math] and the smallest eigenvalue [math]\displaystyle{ \lambda_\min }[/math] is the global minimum of [math]\displaystyle{ r }[/math].
Within a low-dimensional subspace [math]\displaystyle{ \mathcal{L} }[/math] of [math]\displaystyle{ \Complex^n }[/math] it can be feasible to locate the maximum [math]\displaystyle{ x }[/math] and minimum [math]\displaystyle{ y }[/math] of [math]\displaystyle{ r }[/math]. Repeating that for an increasing chain [math]\displaystyle{ \mathcal{L}_1 \subset \mathcal{L}_2 \subset \cdots }[/math] produces two sequences of vectors: [math]\displaystyle{ x_1, x_2, \ldots }[/math] and [math]\displaystyle{ y_1, y_2, \dotsc }[/math] such that [math]\displaystyle{ x_j, y_j \in \mathcal{L}_j }[/math] and
- [math]\displaystyle{ \begin{align} r(x_1) &\leqslant r(x_2) \leqslant \cdots \leqslant \lambda_\max \\ r(y_1) &\geqslant r(y_2) \geqslant \cdots \geqslant \lambda_\min \end{align} }[/math]
The question then arises how to choose the subspaces so that these sequences converge at optimal rate.
From [math]\displaystyle{ x_j }[/math], the optimal direction in which to seek larger values of [math]\displaystyle{ r }[/math] is that of the gradient [math]\displaystyle{ \nabla r(x_j) }[/math], and likewise from [math]\displaystyle{ y_j }[/math] the optimal direction in which to seek smaller values of [math]\displaystyle{ r }[/math] is that of the negative gradient [math]\displaystyle{ -\nabla r(y_j) }[/math]. In general
- [math]\displaystyle{ \nabla r(x) = \frac{2}{x^* x} ( A x - r(x) x ), }[/math]
so the directions of interest are easy enough to compute in matrix arithmetic, but if one wishes to improve on both [math]\displaystyle{ x_j }[/math] and [math]\displaystyle{ y_j }[/math] then there are two new directions to take into account: [math]\displaystyle{ Ax_j }[/math] and [math]\displaystyle{ Ay_j; }[/math] since [math]\displaystyle{ x_j }[/math] and [math]\displaystyle{ y_j }[/math] can be linearly independent vectors (indeed, are close to orthogonal), one cannot in general expect [math]\displaystyle{ Ax_j }[/math] and [math]\displaystyle{ Ay_j }[/math] to be parallel. It is not necessary to increase the dimension of [math]\displaystyle{ \mathcal{L}_j }[/math] by [math]\displaystyle{ 2 }[/math] on every step if [math]\displaystyle{ \{\mathcal{L}_j\}_{j=1}^m }[/math] are taken to be Krylov subspaces, because then [math]\displaystyle{ Az \in \mathcal{L}_{j+1} }[/math] for all [math]\displaystyle{ z \in \mathcal{L}_j, }[/math] thus in particular for both [math]\displaystyle{ z = x_j }[/math] and [math]\displaystyle{ z = y_j }[/math].
In other words, we can start with some arbitrary initial vector [math]\displaystyle{ x_1 = y_1, }[/math] construct the vector spaces
- [math]\displaystyle{ \mathcal{L}_j = \operatorname{span}( x_1, A x_1, \ldots, A^{j-1} x_1 ) }[/math]
and then seek [math]\displaystyle{ x_j, y_j \in \mathcal{L}_j }[/math] such that
- [math]\displaystyle{ r(x_j) = \max_{z \in \mathcal{L}_j} r(z) \qquad \text{and} \qquad r(y_j) = \min_{z \in \mathcal{L}_j} r(z). }[/math]
Since the [math]\displaystyle{ j }[/math]th power method iterate [math]\displaystyle{ u_j }[/math] belongs to [math]\displaystyle{ \mathcal{L}_j, }[/math] it follows that an iteration to produce the [math]\displaystyle{ x_j }[/math] and [math]\displaystyle{ y_j }[/math] cannot converge slower than that of the power method, and will achieve more by approximating both eigenvalue extremes. For the subproblem of optimising [math]\displaystyle{ r }[/math] on some [math]\displaystyle{ \mathcal{L}_j }[/math], it is convenient to have an orthonormal basis [math]\displaystyle{ \{ v_1, \ldots, v_j \} }[/math] for this vector space. Thus we are again led to the problem of iteratively computing such a basis for the sequence of Krylov subspaces.
Convergence and other dynamics
When analysing the dynamics of the algorithm, it is convenient to take the eigenvalues and eigenvectors of [math]\displaystyle{ A }[/math] as given, even though they are not explicitly known to the user. To fix notation, let [math]\displaystyle{ \lambda_1 \geqslant \lambda_2 \geqslant \dotsb \geqslant \lambda_n }[/math] be the eigenvalues (these are known to all be real, and thus possible to order) and let [math]\displaystyle{ z_1,\dotsc,z_n }[/math] be an orthonormal set of eigenvectors such that [math]\displaystyle{ A z_k = \lambda_k z_k }[/math] for all [math]\displaystyle{ k=1,\dotsc,n }[/math].
It is also convenient to fix a notation for the coefficients of the initial Lanczos vector [math]\displaystyle{ v_1 }[/math] with respect to this eigenbasis; let [math]\displaystyle{ d_k = z_k^* v_1 }[/math] for all [math]\displaystyle{ k=1,\dotsc,n }[/math], so that [math]\displaystyle{ \textstyle v_1 = \sum_{k=1}^n d_k z_k }[/math]. A starting vector [math]\displaystyle{ v_1 }[/math] depleted of some eigencomponent will delay convergence to the corresponding eigenvalue, and even though this just comes out as a constant factor in the error bounds, depletion remains undesirable. One common technique for avoiding being consistently hit by it is to pick [math]\displaystyle{ v_1 }[/math] by first drawing the elements randomly according to the same normal distribution with mean [math]\displaystyle{ 0 }[/math] and then rescale the vector to norm [math]\displaystyle{ 1 }[/math]. Prior to the rescaling, this causes the coefficients [math]\displaystyle{ d_k }[/math] to also be independent normally distributed stochastic variables from the same normal distribution (since the change of coordinates is unitary), and after rescaling the vector [math]\displaystyle{ (d_1,\dotsc,d_n) }[/math] will have a uniform distribution on the unit sphere in [math]\displaystyle{ \mathbb{C}^n }[/math]. This makes it possible to bound the probability that for example [math]\displaystyle{ |d_1| \lt \varepsilon }[/math].
The fact that the Lanczos algorithm is coordinate-agnostic – operations only look at inner products of vectors, never at individual elements of vectors – makes it easy to construct examples with known eigenstructure to run the algorithm on: make [math]\displaystyle{ A }[/math] a diagonal matrix with the desired eigenvalues on the diagonal; as long as the starting vector [math]\displaystyle{ v_1 }[/math] has enough nonzero elements, the algorithm will output a general tridiagonal symmetric matrix as [math]\displaystyle{ T }[/math].
Kaniel–Paige convergence theory
After [math]\displaystyle{ m }[/math] iteration steps of the Lanczos algorithm, [math]\displaystyle{ T }[/math] is an [math]\displaystyle{ m \times m }[/math] real symmetric matrix, that similarly to the above has [math]\displaystyle{ m }[/math] eigenvalues [math]\displaystyle{ \theta_1 \geqslant \theta_2 \geqslant \dots \geqslant \theta_m. }[/math] By convergence is primarily understood the convergence of [math]\displaystyle{ \theta_1 }[/math] to [math]\displaystyle{ \lambda_1 }[/math] (and the symmetrical convergence of [math]\displaystyle{ \theta_m }[/math] to [math]\displaystyle{ \lambda_n }[/math]) as [math]\displaystyle{ m }[/math] grows, and secondarily the convergence of some range [math]\displaystyle{ \theta_1, \ldots, \theta_k }[/math] of eigenvalues of [math]\displaystyle{ T }[/math] to their counterparts [math]\displaystyle{ \lambda_1, \ldots, \lambda_k }[/math] of [math]\displaystyle{ A }[/math]. The convergence for the Lanczos algorithm is often orders of magnitude faster than that for the power iteration algorithm.[9]:477
The bounds for [math]\displaystyle{ \theta_1 }[/math] come from the above interpretation of eigenvalues as extreme values of the Rayleigh quotient [math]\displaystyle{ r(x) }[/math]. Since [math]\displaystyle{ \lambda_1 }[/math] is a priori the maximum of [math]\displaystyle{ r }[/math] on the whole of [math]\displaystyle{ \Complex^n, }[/math] whereas [math]\displaystyle{ \theta_1 }[/math] is merely the maximum on an [math]\displaystyle{ m }[/math]-dimensional Krylov subspace, we trivially get [math]\displaystyle{ \lambda_1 \geqslant \theta_1 }[/math]. Conversely, any point [math]\displaystyle{ x }[/math] in that Krylov subspace provides a lower bound [math]\displaystyle{ r(x) }[/math] for [math]\displaystyle{ \theta_1 }[/math], so if a point can be exhibited for which [math]\displaystyle{ \lambda_1 - r(x) }[/math] is small then this provides a tight bound on [math]\displaystyle{ \theta_1 }[/math].
The dimension [math]\displaystyle{ m }[/math] Krylov subspace is
- [math]\displaystyle{ \operatorname{span} \left \{v_1, A v_1, A^2 v_1, \ldots, A^{m-1} v_1 \right \}, }[/math]
so any element of it can be expressed as [math]\displaystyle{ p(A) v_1 }[/math] for some polynomial [math]\displaystyle{ p }[/math] of degree at most [math]\displaystyle{ m-1 }[/math]; the coefficients of that polynomial are simply the coefficients in the linear combination of the vectors [math]\displaystyle{ v_1, A v_1, A^2 v_1, \ldots, A^{m-1} v_1 }[/math]. The polynomial we want will turn out to have real coefficients, but for the moment we should allow also for complex coefficients, and we will write [math]\displaystyle{ p^* }[/math] for the polynomial obtained by complex conjugating all coefficients of [math]\displaystyle{ p }[/math]. In this parametrisation of the Krylov subspace, we have
- [math]\displaystyle{ r(p(A)v_1) = \frac{(p(A) v_1)^* A p(A) v_1}{(p(A) v_1)^* p(A) v_1} = \frac{v_1^* p(A)^* A p(A) v_1}{v_1^* p(A)^* p(A) v_1} = \frac{v_1^* p^*(A^*) A p(A) v_1 }{v_1^* p^*(A^*) p(A) v_1} = \frac{ v_1^* p^*(A) A p(A) v_1 }{v_1^* p^*(A) p(A) v_1} }[/math]
Using now the expression for [math]\displaystyle{ v_1 }[/math] as a linear combination of eigenvectors, we get
- [math]\displaystyle{ A v_1 = A \sum_{k=1}^n d_k z_k = \sum_{k=1}^n d_k \lambda_k z_k }[/math]
and more generally
- [math]\displaystyle{ q(A) v_1 = \sum_{k=1}^n d_k q(\lambda_k) z_k }[/math]
for any polynomial [math]\displaystyle{ q }[/math].
Thus
- [math]\displaystyle{ \lambda_1 - r(p(A)v_1) = \lambda_1 - \frac{v_1^* \sum_{k=1}^n d_k p^*(\lambda_k) \lambda_k p(\lambda_k) z_k}{v_1^* \sum_{k=1}^n d_k p^*(\lambda_k) p(\lambda_k) z_k} = \lambda_1 - \frac{\sum_{k=1}^n |d_k|^2 \lambda_k p(\lambda_k)^* p(\lambda_k)}{\sum_{k=1}^n |d_k|^2 p(\lambda_k)^* p(\lambda_k)} = \frac{\sum_{k=1}^n |d_k|^2 (\lambda_1-\lambda_k) \left| p(\lambda_k) \right|^2 }{\sum_{k=1}^n |d_k|^2 \left| p(\lambda_k) \right|^2 }. }[/math]
A key difference between numerator and denominator here is that the [math]\displaystyle{ k=1 }[/math] term vanishes in the numerator, but not in the denominator. Thus if one can pick [math]\displaystyle{ p }[/math] to be large at [math]\displaystyle{ \lambda_1 }[/math] but small at all other eigenvalues, one will get a tight bound on the error [math]\displaystyle{ \lambda_1-\theta_1 }[/math].
Since [math]\displaystyle{ A }[/math] has many more eigenvalues than [math]\displaystyle{ p }[/math] has coefficients, this may seem a tall order, but one way to meet it is to use Chebyshev polynomials. Writing [math]\displaystyle{ c_k }[/math] for the degree [math]\displaystyle{ k }[/math] Chebyshev polynomial of the first kind (that which satisfies [math]\displaystyle{ c_k(\cos x) = \cos(kx) }[/math] for all [math]\displaystyle{ x }[/math]), we have a polynomial which stays in the range [math]\displaystyle{ [-1,1] }[/math] on the known interval [math]\displaystyle{ [-1,1] }[/math] but grows rapidly outside it. With some scaling of the argument, we can have it map all eigenvalues except [math]\displaystyle{ \lambda_1 }[/math] into [math]\displaystyle{ [-1,1] }[/math]. Let
- [math]\displaystyle{ p(x) = c_{m-1}\left( \frac{2x - \lambda_2 - \lambda_n}{\lambda_2 - \lambda_n} \right) }[/math]
(in case [math]\displaystyle{ \lambda_2=\lambda_1 }[/math], use instead the largest eigenvalue strictly less than [math]\displaystyle{ \lambda_1 }[/math]), then the maximal value of [math]\displaystyle{ | p(\lambda_k)|^2 }[/math] for [math]\displaystyle{ k \geqslant 2 }[/math] is [math]\displaystyle{ 1 }[/math] and the minimal value is [math]\displaystyle{ 0 }[/math], so
- [math]\displaystyle{ \lambda_1 - \theta_1 \leqslant \lambda_1 - r(p(A) v_1) = \frac{\sum_{k=2}^n |d_k|^2 (\lambda_1-\lambda_k) |p(\lambda_k)|^2 }{ \sum_{k=1}^n |d_k|^2 |p(\lambda_k)|^2} \leqslant \frac{\sum_{k=2}^n |d_k|^2 (\lambda_1-\lambda_k)}{|d_1|^2 |p(\lambda_1)|^2 } \leqslant \frac{(\lambda_1-\lambda_n) \sum_{k=2}^n |d_k|^2 }{|p(\lambda_1)|^2 |d_1|^2 }. }[/math]
Furthermore
- [math]\displaystyle{ p(\lambda_1) = c_{m-1}\left( \frac{2\lambda_1 - \lambda_2 - \lambda_n}{\lambda_2 - \lambda_n} \right) = c_{m-1}\left( 2\frac{\lambda_1 - \lambda_2}{\lambda_2 - \lambda_n} + 1 \right); }[/math]
the quantity
- [math]\displaystyle{ \rho = \frac{\lambda_1 - \lambda_2}{\lambda_2 - \lambda_n} }[/math]
(i.e., the ratio of the first eigengap to the diameter of the rest of the spectrum) is thus of key importance for the convergence rate here. Also writing
- [math]\displaystyle{ R = e^{\operatorname{arcosh}(1+2\rho)} = 1 + 2\rho + 2\sqrt{\rho^2+\rho}, }[/math]
we may conclude that
- [math]\displaystyle{ \begin{align} \lambda_1 - \theta_1 &\leqslant \frac{(\lambda_1-\lambda_n) \left(1 - |d_1|^2 \right )}{c_{m-1}(2\rho+1)^2 |d_1|^2} \\[6pt] &= \frac{1 - |d_1|^2}{|d_1|^2} (\lambda_1-\lambda_n) \frac{1}{\cosh^2 ((m-1) \operatorname{arcosh}(1+2\rho))} \\[6pt] &= \frac{1 - |d_1|^2}{|d_1|^2} (\lambda_1-\lambda_n) \frac{4}{\left (R^{m-1} + R^{-(m-1)} \right )^2} \\[6pt] &\leqslant 4 \frac{1 - |d_1|^2}{|d_1|^2} (\lambda_1-\lambda_n) R^{-2(m-1)} \end{align} }[/math]
The convergence rate is thus controlled chiefly by [math]\displaystyle{ R }[/math], since this bound shrinks by a factor [math]\displaystyle{ R^{-2} }[/math] for each extra iteration.
For comparison, one may consider how the convergence rate of the power method depends on [math]\displaystyle{ \rho }[/math], but since the power method primarily is sensitive to the quotient between absolute values of the eigenvalues, we need [math]\displaystyle{ |\lambda_n| \leqslant |\lambda_2| }[/math] for the eigengap between [math]\displaystyle{ \lambda_1 }[/math] and [math]\displaystyle{ \lambda_2 }[/math] to be the dominant one. Under that constraint, the case that most favours the power method is that [math]\displaystyle{ \lambda_n = -\lambda_2 }[/math], so consider that. Late in the power method, the iteration vector:
- [math]\displaystyle{ u = (1-t^2)^{1/2} z_1 + t z_2 \approx z_1 + t z_2, }[/math][note 1]
where each new iteration effectively multiplies the [math]\displaystyle{ z_2 }[/math]-amplitude [math]\displaystyle{ t }[/math] by
- [math]\displaystyle{ \frac{\lambda_2}{\lambda_1} = \frac{\lambda_2}{\lambda_2 + (\lambda_1-\lambda_2)} = \frac{1}{1 + \frac{\lambda_1-\lambda_2}{\lambda_2}} = \frac{1}{1 + 2\rho}. }[/math]
The estimate of the largest eigenvalue is then
- [math]\displaystyle{ u^*Au = (1-t^2)\lambda_1 + t^2\lambda_2, }[/math]
so the above bound for the Lanczos algorithm convergence rate should be compared to
- [math]\displaystyle{ \lambda_1 - u^*Au = (\lambda_1-\lambda_2) t^2, }[/math]
which shrinks by a factor of [math]\displaystyle{ (1+2\rho)^{-2} }[/math] for each iteration. The difference thus boils down to that between [math]\displaystyle{ 1+2\rho }[/math] and [math]\displaystyle{ R = 1 + 2\rho + 2\sqrt{\rho^2+\rho} }[/math]. In the [math]\displaystyle{ \rho \gg 1 }[/math] region, the latter is more like [math]\displaystyle{ 1+4\rho }[/math], and performs like the power method would with an eigengap twice as large; a notable improvement. The more challenging case is however that of [math]\displaystyle{ \rho \ll 1, }[/math] in which [math]\displaystyle{ R \approx 1 + 2\sqrt{\rho} }[/math] is an even larger improvement on the eigengap; the [math]\displaystyle{ \rho \gg 1 }[/math] region is where the Lanczos algorithm convergence-wise makes the smallest improvement on the power method.
Numerical stability
Stability means how much the algorithm will be affected (i.e. will it produce the approximate result close to the original one) if there are small numerical errors introduced and accumulated. Numerical stability is the central criterion for judging the usefulness of implementing an algorithm on a computer with roundoff.
For the Lanczos algorithm, it can be proved that with exact arithmetic, the set of vectors [math]\displaystyle{ v_1, v_2, \cdots, v_{m+1} }[/math] constructs an orthonormal basis, and the eigenvalues/vectors solved are good approximations to those of the original matrix. However, in practice (as the calculations are performed in floating point arithmetic where inaccuracy is inevitable), the orthogonality is quickly lost and in some cases the new vector could even be linearly dependent on the set that is already constructed. As a result, some of the eigenvalues of the resultant tridiagonal matrix may not be approximations to the original matrix. Therefore, the Lanczos algorithm is not very stable.
Users of this algorithm must be able to find and remove those "spurious" eigenvalues. Practical implementations of the Lanczos algorithm go in three directions to fight this stability issue:[6][7]
- Prevent the loss of orthogonality,
- Recover the orthogonality after the basis is generated.
- After the good and "spurious" eigenvalues are all identified, remove the spurious ones.
Variations
Variations on the Lanczos algorithm exist where the vectors involved are tall, narrow matrices instead of vectors and the normalizing constants are small square matrices. These are called "block" Lanczos algorithms and can be much faster on computers with large numbers of registers and long memory-fetch times.
Many implementations of the Lanczos algorithm restart after a certain number of iterations. One of the most influential restarted variations is the implicitly restarted Lanczos method,[10] which is implemented in ARPACK.[11] This has led into a number of other restarted variations such as restarted Lanczos bidiagonalization.[12] Another successful restarted variation is the Thick-Restart Lanczos method,[13] which has been implemented in a software package called TRLan.[14]
Nullspace over a finite field
In 1995, Peter Montgomery published an algorithm, based on the Lanczos algorithm, for finding elements of the nullspace of a large sparse matrix over GF(2); since the set of people interested in large sparse matrices over finite fields and the set of people interested in large eigenvalue problems scarcely overlap, this is often also called the block Lanczos algorithm without causing unreasonable confusion.[citation needed]
Applications
Lanczos algorithms are very attractive because the multiplication by [math]\displaystyle{ A\, }[/math] is the only large-scale linear operation. Since weighted-term text retrieval engines implement just this operation, the Lanczos algorithm can be applied efficiently to text documents (see latent semantic indexing). Eigenvectors are also important for large-scale ranking methods such as the HITS algorithm developed by Jon Kleinberg, or the PageRank algorithm used by Google.
Lanczos algorithms are also used in condensed matter physics as a method for solving Hamiltonians of strongly correlated electron systems,[15] as well as in shell model codes in nuclear physics.[16]
Implementations
The NAG Library contains several routines[17] for the solution of large scale linear systems and eigenproblems which use the Lanczos algorithm.
MATLAB and GNU Octave come with ARPACK built-in. Both stored and implicit matrices can be analyzed through the eigs() function (Matlab/Octave).
Similarly, in Python, the SciPy package has scipy.sparse.linalg.eigsh which is also a wrapper for the SSEUPD and DSEUPD functions functions from ARPACK which use the Implicitly Restarted Lanczos Method.
A Matlab implementation of the Lanczos algorithm (note precision issues) is available as a part of the Gaussian Belief Propagation Matlab Package. The GraphLab[18] collaborative filtering library incorporates a large scale parallel implementation of the Lanczos algorithm (in C++) for multicore.
The PRIMME library also implements a Lanczos-like algorithm.
Notes
- ↑ The coefficients need not both be real, but the phase is of little importance. Nor need the composants for other eigenvectors have completely disappeared, but they shrink at least as fast as that for [math]\displaystyle{ z_2 }[/math], so [math]\displaystyle{ u \approx z_1 + t z_2 }[/math] describes the worst case.
References
- ↑ Lanczos, C. (1950). "An iteration method for the solution of the eigenvalue problem of linear differential and integral operators". Journal of Research of the National Bureau of Standards 45 (4): 255–282. doi:10.6028/jres.045.026. https://www.cs.umd.edu/~oleary/lanczos1950.pdf.
- ↑ 2.0 2.1 Ojalvo, I. U.; Newman, M. (1970). "Vibration modes of large structures by an automatic matrix-reduction method". AIAA Journal 8 (7): 1234–1239. doi:10.2514/3.5878. Bibcode: 1970AIAAJ...8.1234N.
- ↑ Paige, C. C. (1971). The computation of eigenvalues and eigenvectors of very large sparse matrices (Ph.D. thesis). U. of London. OCLC 654214109.
- ↑ Paige, C. C. (1972). "Computational Variants of the Lanczos Method for the Eigenproblem". J. Inst. Maths Applics 10 (3): 373–381. doi:10.1093/imamat/10.3.373.
- ↑ Ojalvo, I. U. (1988). "Origins and advantages of Lanczos vectors for large dynamic systems". Proc. 6th Modal Analysis Conference (IMAC), Kissimmee, FL. pp. 489–494.
- ↑ 6.0 6.1 Cullum; Willoughby (1985). Lanczos Algorithms for Large Symmetric Eigenvalue Computations. 1. ISBN 0-8176-3058-9.
- ↑ 7.0 7.1 Yousef Saad (1992-06-22). Numerical Methods for Large Eigenvalue Problems. ISBN 0-470-21820-7. http://www-users.cs.umn.edu/~saad/books.html.
- ↑ Coakley, Ed S.; Rokhlin, Vladimir (2013). "A fast divide-and-conquer algorithm for computing the spectra of real symmetric tridiagonal matrices". Applied and Computational Harmonic Analysis 34 (3): 379–414. doi:10.1016/j.acha.2012.06.003.
- ↑ 9.0 9.1 Golub, Gene H.; Van Loan, Charles F. (1996). Matrix computations (3. ed.). Baltimore: Johns Hopkins Univ. Press. ISBN 0-8018-5413-X.
- ↑ D. Calvetti; L. Reichel; D.C. Sorensen (1994). "An Implicitly Restarted Lanczos Method for Large Symmetric Eigenvalue Problems". Electronic Transactions on Numerical Analysis 2: 1–21. http://etna.mcs.kent.edu/vol.2.1994/pp1-21.dir/pp1-21.ps.
- ↑ R. B. Lehoucq; D. C. Sorensen; C. Yang (1998). ARPACK Users Guide: Solution of Large-Scale Eigenvalue Problems with Implicitly Restarted Arnoldi Methods. SIAM. doi:10.1137/1.9780898719628. ISBN 978-0-89871-407-4.
- ↑ E. Kokiopoulou; C. Bekas; E. Gallopoulos (2004). "Computing smallest singular triplets with implicitly restarted Lanczos bidiagonalization". Appl. Numer. Math. 49: 39–61. doi:10.1016/j.apnum.2003.11.011. https://infoscience.epfl.ch/record/87150/files/Kokiopoulou2004_1356.pdf.
- ↑ Kesheng Wu; Horst Simon (2000). "Thick-Restart Lanczos Method for Large Symmetric Eigenvalue Problems". SIAM Journal on Matrix Analysis and Applications (SIAM) 22 (2): 602–616. doi:10.1137/S0895479898334605. https://zenodo.org/record/1236144.
- ↑ "TRLan software package". 2001. http://crd.lbl.gov/~kewu/trlan.html.
- ↑ Chen, HY; Atkinson, W.A.; Wortis, R. (July 2011). "Disorder-induced zero-bias anomaly in the Anderson-Hubbard model: Numerical and analytical calculations". Physical Review B 84 (4): 045113. doi:10.1103/PhysRevB.84.045113. Bibcode: 2011PhRvB..84d5113C.
- ↑ Shimizu, Noritaka (21 October 2013). "Nuclear shell-model code for massive parallel computation, "KSHELL"". arXiv:1310.5431 [nucl-th].
- ↑ The Numerical Algorithms Group. "Keyword Index: Lanczos". NAG Library Manual, Mark 23. http://www.nag.co.uk/numeric/fl/nagdoc_fl23/html/INDEXES/KWIC/lanczos.html.
- ↑ GraphLab
Further reading
- Golub, Gene H.; Van Loan, Charles F. (1996). "Lanczos Methods". Matrix Computations. Baltimore: Johns Hopkins University Press. pp. 470–507. ISBN 0-8018-5414-8. https://books.google.com/books?id=mlOa7wPX6OYC&pg=PA470.
- Ng, Andrew Y.; Zheng, Alice X.; Jordan, Michael I. (2001). "Link Analysis, Eigenvectors and Stability". IJCAI'01 Proceedings of the 17th International Joint Conference on Artificial Intelligence 2: 903–910. https://ai.stanford.edu/~ang/papers/ijcai01-linkanalysis.pdf.
- Erik Koch (2019). "Exact Diagonalization and Lanczos Method". Many-Body Methods for Real Materials. Jülich. ISBN 978-3-95806-400-3. http://www.cond-mat.de/events/correl19/manuscripts/koch.pdf.
Original source: https://en.wikipedia.org/wiki/Lanczos algorithm.
Read more |