A number of applications require to compute an approximation of the diagonal of a matrix when this matrix is not explicitly available but matrix-vector products with it are easy to evaluate. In some cases, it is the trace of the matrix rather than the diagonal that is needed. This paper describes methods for estimating diagonals and traces of matrices in these situations. The goal is to obtain a good estimate of the diagonal by applying only a small number of matrix-vector products, using selected vectors. We begin by considering the use of random test vectors and then explore special vectors obtained from Hadamard matrices. The methods are tested in the context of computational materials science to estimate the diagonal of the density matrix which holds the charge densities. Numerical experiments indicate that the diagonal estimator may offer an alternative method that in some cases can greatly reduce computational costs in electronic structures calculations.
Bibliographical noteFunding Information:
✩ Work supported by NSF grants ITR-0082094, ACE-0305120, by DOE under Grants DE-FG02-03ER25585, DE-FG02-03ER15491, and by the Minnesota Supercomputers Institute. * Corresponding author. Current address: IBM Research, Zurich Research Laboratory, Switzerland. E-mail addresses: email@example.com (C. Bekas), firstname.lastname@example.org (E. Kokiopoulou), email@example.com (Y. Saad). 1 Current address: ITS-LTS4, Swiss Federal Institute of Technology (EPFL), Lausanne, Switzerland.
- Density Functional Theory
- Electronic structure calculations
- Grassmannian spaces
- Hadamard matrices
- Stochastic estimator