7.4 Symmetry and definiteness
Key theory:
- spectral decomposition for hermitian (symmetric) matrix: A = VDV−1
- hermitian matrices are normal with condition number 1
- SVD of hermitian matrices: : A = (VT)|D|V∗
- Rayleigh quotient for quadratics shows a good estimate of eigenvector is even better estimate of eigenvalue
- hermitian positive definite: all quadratics are greater than 0 (all eigenvalues are positive)
Exercise 7.4.1
Thanks to spectral decomposition, the eigenvalue problem for hermitian matrices is easier than for general matrices.
- Let A be a 1000×1000 random real matrix, and S = A + AT. Time the
eigvals
function for A and then for S.
- Perform the experiment from part (a) on n×n matrices for n=200,300,...,1600. Plot running time as a function of n for both matrices on a single log-log plot. Is the ratio of running times roughly constant, or does it grow with n?