Abstract
The study of matrix functions is highly significant and has important applications in control theory, quantum mechanics, signal processing, and machine learning. Previous work has mainly focused on how to use the Krylov-type method to efficiently calculate matrix functions and when A is symmetric. In this paper, we mainly illustrate the convergence using the polynomial approximation theory for the case where A is symmetric positive definite. Numerical results illustrate the effectiveness of our theoretical results.
Keywords:
matrix logarithm function; Chebyshev polynomial; Legendre polynomial; Lanczos method; Krylov subspace MSC:
65K10; 65K05; 90C20
1. Introduction
The study of matrix functions is highly significant and has important applications in control theory, quantum mechanics, signal processing, and machine learning. Some studies on discrete matrix functions have been investigated in [1,2]. Let be a large sparse matrix and be a nonzero real vector. Many research works have focused on computing and [3,4,5] using the Krylov-type method, where f is a function that makes well defined and is called a bilinear form when A is symmetric [6]. Theoretical results and numerical experiments have shown that and can be calculated efficiently using the Krylov-type method [7,8,9,10].
In this paper, we consider the special case that matrix A is symmetric positive definite and , or . The logarithm of A is any matrix X that holds (refer to ([11], Chapter 11), [12,13], or [14]). Let the eigen decomposition of A be
with
where , , and . If an eigenvalue of A is less than 0, then is not well defined ([11], Chapter 11). Thus, if A is symmetric, it must be positive definite. The matrix logarithm function is defined for A as follows ([11], Definition 1.2):
Similarly, the matrix square root is defined for A as follows ([11], Definition 1.2):
The estimation of the log-determinant of matrix A is widely used in, for example, Markov random field models [15], lattice quantum chromodynamics [16], statistical learning [17], and so on. Moreover, the calculation of the bilinear form is crucial for the estimation of the log-determinant of matrix A. The computation of arises in the context of Markov function problems and domain decomposition methods [18]. The computation of has received much attention [6,19]. The utilization of modified moments [6,20], Monte Carlo methods [21], and Gaussian quadratures [6,22] to estimate for symmetric positive definite matrices has been proposed. These estimates have a wide range of applications in mathematics [6], physics [23], and statistics [24]. Moreover, the computation of is important for estimating the trace of the matrix inverse [25,26]. The Lanczos method is a method commonly used to compute , , and .
Using the polynomial approximation theory, we prove, in this paper, that the Lanczos method converges at rates
for computing , , , and , respectively. Here, k denotes the iterations and , with denoting the Euclidean norm of a matrix or a vector in this paper.
Throughout our paper, we let A be symmetric positive definite and organized the paper as follows. We present the Lanczos approximation to , , , and in Section 2. In Section 3, a convergence analysis of the Lanczos method for computing , , , and is provided. Numerical results are presented in Section 4 to illustrate the effectiveness of our bounds, and in Section 5, we present a conclusion.
2. Lanczos Approximation of , , , and
For the Krylov subspace
we can usually obtain an orthonormal basis of it using the Lanczos process [6]. Moreover, it holds that
where
and
Thus, , , , and are taken as approximations of , , , and , respectively ([11], Section 13.2).
If the Lanczos process (1) terminates at iteration for the first time, then and
Let the eigen decomposition of be
Hence, . By ([11], Definition 1.4), we have that there exist three polynomials q, p, and h such that , and . Hence, , , and , . Thus, it can be seen that , , , ,
and
Similarly, it holds that
Thus, when the Lanczos process terminates, , , , and can be found exactly.
3. Main Achievements
The convergence of the Lanczos approximations to , , , and is mainly considered in this section. We first give the following three lemmas.
Lemma 1
(([27], eq.(5.6.2)), and ([28], p. 449)). For any and , we have
and
where represents the first kind of n-th degree Chebyshev polynomial
and represents the n-th degree Legendre polynomial
Moreover,
Lemma 2
([8], Lemma 2.2). If f is analytic on , then
where , and denotes the polynomials set with degrees no higher than .
Lemma 3
([29]). For any , we have
The main achievements of this article are presented below.
Theorem 1.
Let . For ,
and
Proof.
Let
Then,
According to Lemma 1, we have
Consider the linear transformation
which maps bijectively onto . Then,
Let
Furthermore, a linear map is called a unital positive linear map ([30], p. 5) if the following hold:
- (i)
- A is symmetric positive definite ⇒ is also symmetric positive definite;
- (ii)
- .
Define
Thus, is a unital positive linear map. By ([30], Corollary 1.8),
It follows that
which yields the first inequality in (9). In light of (7), we see that
Analogously, consider
Recall that for . We then have
which yields (9). □
Theorem 2.
For ,
Finally, we provide a convergence analysis of .
Theorem 3.
For ,
Proof.
On the one hand, we deduce that
On the other hand,
Recall that ; it follows that
which yields (14). □
Remark 1.
It is well known that the rate of convergence in computing using the conjugate gradient method is
where is the approximate solution of derived from the k-th step of the conjugate gradient method for solving linear system . It follows that . Thus, in practice, we can estimate the size of from the size of .
Remark 2.
According to Theorems 1–3, the convergence rates of , , and are
respectively. The smaller the condition number ϰ of A, the faster these four quantities converge to zero. It should be noted that the convergence rate of is significantly higher than and and slightly higher than that of . The numerical experiments in Section 4 illustrate these two facts.
If f is analytic on , then
In contrast, for , the convergence rate provided by (9) is superior.
4. Numerical Experiments
We want to show the effectiveness of the bounds provided by (8), (9), (13), and (14) with two examples.
Example 1.
Let the matrix [31], where
Here, , , and represents the n-th translated Chebyshev zero node on . Let
with
The selection of ζ is listed in Table 1.
Table 1.
Example 1: Different values of with different choices of .
Example 2.
Consider the Strakoš matrix
The distribution of the eigenvalue is controlled by the parameter ρ. We take
in this example. The selection of is listed in Table 2.
Table 2.
Example 2: Different values of with different choices of .
So, we obtain different values of with different choices of and ; refer to Table 1 and Table 2. In Figure 1, Figure 2, Figure 3 and Figure 4, we plot the curves of , , , and with different , as well as the bounds in (8) and (9), respectively. It is obvious to see from Figure 1, Figure 2, Figure 3 and Figure 4 that (i) the iterations increase with the increasing of , which is consistent with our results (see (8), (9), (13), and (14)); (ii) the convergence rate of is significantly higher than and and slightly higher than that of , which is also consistent with our results; (iii) the curves of the bounds in (8), (9), (13), and (14) are almost parallel to the curves of the real values, except for in Example 2 (see Figure 4c,d). That is, our bounds can evaluate the convergence rates of , , , and effectively, in most instances. All these show the effectiveness of the theoretical results proposed in our paper.
Figure 1.
Example 1: Lines correspond to and ; refer to Theorem 1.
Figure 2.
Example 1: Lines correspond to and ; refer to Theorems 2 and 3.
Figure 3.
Example 2: Lines correspond to and ; refer to Theorem 1.
Figure 4.
Example 2: Lines correspond to and ; refer to Theorems 2 and 3.
5. Concluding Remarks
We established the convergence rates of the Lanczos method for computing , , , and , as
respectively. Here, A is assumed to be symmetric positive definite. It is not difficult to see that the convergence rate of is significantly higher than and and slightly higher than that of . Numerical experiments illustrate the effectiveness of our theoretical results.
The Lanczos method can also be used to compute some other matrix functions, e.g., , (), , , and so on. The key to convergence analysis is to find the Chebyshev expansion of these functions. Furthermore, our analysis is confined to the scenario where A is symmetric positive definite. The situation is complicated for a nonsymmetric matrix whose eigenvalues are often complex. Therefore, we must resort to the theory of polynomial approximation over complex domains for convergence analysis. Extending this analysis to cases where A is nonsymmetric warrants further investigation. Finally, it is clear from the numerical experiments that the bounds we provide are not sharp enough when the condition number is large, and it is also an interesting question to investigate whether these upper bounds can be improved further.
Author Contributions
Y.G. prepared the mathematica programs, tables, and figures; Y.G., H.M.S. and X.L. wrote the manuscript text. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the Suqian University Youth Foundation (Grant No. 2023XQNA15) and Suqian Sci & Tech Program (Grant No. K202419).
Data Availability Statement
This manuscript has no associated data.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Cuchta, T.; Grow, D.; Wintz, N. Discrete matrix hypergeometric functions. J. Math. Anal. Appl. 2023, 518, 126716. [Google Scholar] [CrossRef] [Scilit]
- Cuchta, T.; Luketic, R. Discrete hypergeometric Legendre polynomials. Mathematics 2021, 9, 2546. [Google Scholar] [CrossRef] [Scilit]
- Güttel, S. Rational Krylov approximation of matrix functions: Numerical methods and optimal pole selection. GAMM-Mitteilungen 2013, 36, 8–31. [Google Scholar] [CrossRef] [Scilit]
- Ilic, M.D.; Turner, I.W.; Simpson, D.P. A restarted Lanczos approximation to functions of a symmetric matrix. IMA J. Numer. Anal. 2009, 30, 1044–1061. [Google Scholar] [CrossRef] [Scilit]
- Ubaru, S.; Chen, J.; Saad, Y. Fast estimation of tr(f(A)) via stochastic Lanczos quadrature. SIAM J. Matrix Anal. Appl. 2017, 38, 1075–1099. [Google Scholar] [CrossRef] [Scilit]
- Golub, G.H.; Meurant, G. Matrices, Moments and Quadrature with Applications; Princeton University Press: Princeton, NJ, USA, 2009; Volume 30. [Google Scholar]
- Frommer, A.; Schweitzer, M. Error bounds and estimates for Krylov subspace approximations of Stieltjes matrix functions. BIT Numer. Math. 2015, 56, 865–892. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.; Hallman, E. Krylov-aware stochastic trace estimation. SIAM J. Matrix Anal. Appl. 2023, 44, 1218–1244. [Google Scholar] [CrossRef] [Scilit]
- Druskin, V.L.; Knizhnerman, L.A. Error bounds in the simple Lanczos procedure for computing functions of symmetric matrices and eigenvalues. Comput. Math. Math. Phys. 1991, 31, 20–30. [Google Scholar]
- Frommer, A.; Kahl, K.; Lippert, T.; Rittich, H. 2-norm error bounds and estimates for Lanczos approximations to linear systems and rational matrix functions. SIAM J. Matrix Anal. Appl. 2013, 34, 1046–1065. [Google Scholar] [CrossRef] [Scilit]
- Higham, N.J. Functions of Matrices: Theory and Computation; SIAM: Philadelphia, PA, USA, 2008. [Google Scholar]
- Cuchta, T.; Grow, D.; Wintz, N. A dynamic matrix exponential via a matrix cylinder transformation. J. Math. Anal. Appl. 2019, 479, 733–751. [Google Scholar] [CrossRef] [Scilit]
- Golub, G.H.; Van Loan, C.F. Matrix Computations; Johns Hopkins University Press: Baltimore, MD, USA, 2012. [Google Scholar]
- Saad, Y. Analysis of Some Krylov Subspace Approximations to the Matrix Exponential Operator. SIAM J. Numer. Anal. 1992, 29, 209–228. [Google Scholar] [CrossRef] [Scilit]
- Wainwright, M.J.; Jordan, M.I. Log-determinant relaxation for approximate inference in discrete Markov random fields. IEEE Trans. Signal Process. 2006, 54, 2099–2109. [Google Scholar] [CrossRef] [Scilit]
- Thron, C.; Dong, S.J.; Liu, K.F.; Ying, H.P. Padé-Z2 estimator of determinants. Phys. D-Rev. Part. Fields Gravit. Cosmol. 1998, 57, 1642–1653. [Google Scholar] [CrossRef] [Scilit]
- Affandi, H.; Fox, E.; Adams, R.; Taskar, B. Learning the parameters of determinantal point process kernels. In Proceedings of the 31st International Conference on Machine Learning, Beijing, China, 21–26 June 2014; pp. 1224–1232. [Google Scholar]
- Arioli, M.; Loghin, D. Matrix Square-Root Preconditioners for the Steklov-Poincaré Operator; Technical Report RAL-TR-2008-003; Rutherford Appleton Laboratory: Didcot, UK, 2008. [Google Scholar]
- Tang, J.; Saad, Y. A Probing Method for Computing the Diagonal of the Inverse of a Matrix; Report UMSI–2010–42; Minnesota Supercomputer Institute, University of Minnesota: Minneapolis, MN, USA, 2010. [Google Scholar]
- Meurant, G. Estimates of the trace of the inverse of a symmetric matrix using the modified Chebyshev algorithms. Numer. Algorithms 2009, 51, 309–318. [Google Scholar] [CrossRef] [Scilit]
- Bai, Z.; Fahey, M.; Golub, G.H. Some large Scale computation problems. J. Comput. Appl. Math. 1996, 74, 71–89. [Google Scholar] [CrossRef] [Scilit]
- Bai, Z.; Golub, G.H. Bounds for the trace of the inverse and the determinant of symmetric positive definite matrices. Ann. Numer. Math. 1997, 4, 29–38. [Google Scholar]
- Dong, S.J.; Liu, K.F. Stochastic estimation with Z2 noise. Phys. Lett. B 1994, 328, 130–136. [Google Scholar] [CrossRef] [Scilit]
- Ortner, B.; Krauter, A.R. Lower bounds for the determinant and the trace of a class of Hermitian matrices. Linear Algebra Its Appl. 1996, 236, 147–180. [Google Scholar] [CrossRef] [Scilit]
- Brezinski, C.; Fika, P.; Mitrouli, M. Moments of a linear operator, with applications to the trace of the inverse of matrices and the solution of equations. Numer. Linear Algebra Appl. 2012, 19, 937–953. [Google Scholar] [CrossRef] [Scilit]
- Wu, L.; Laeuchli, J.; Kalantzis, V.; Stathopoulos, A.; Gallopoulos, E. Estimating the trace of the matrix inverse by interpolating from the diagonal of an approximate inverse. J. Comput. Phys. 2016, 326, 828–844. [Google Scholar] [CrossRef] [Scilit]
- Beals, R.; Wong, R. Special Functions and Orthogonal Polynomials; Cambridge University Press: Cambridge, UK, 2016. [Google Scholar]
- Olver, F.; Lozier, D.; Boisvert, R.; Clark, C. The NIST Handbook of Mathematical Functions; Cambridge University Press: New York, NY, USA, 2010. [Google Scholar]
- Bernstein, S.N. Sur l, ordre de la meilleure approximation des fonctions continues par les polynômes de degré donné. R. Acad. Med. Belg. 1912, 4, 1–104. [Google Scholar]
- Zhan, X. Matrix Inequalities; Springer: Berlin/Heidelberg, Germany, 2002. [Google Scholar]
- Zhang, L.; Shen, C.; Li, R. On the generalized Lanczos trust-region method. SIAM J. Optim. 2017, 27, 2110–2142. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).











