Counting Eigenvalues
When solving a generalised eigenvalue problem
as in modal analysis, we can count the number of eigenpairs we will find in some interval .
This is done using a Sylvester inertia check [1]. Sylvester's law of inertia tells us that the number of eigenvalues in is equal to the number of negative diagonal entries in the diagonal (D) matrix of the LDL decomposition [2] of . We can easily compute the latter, and therefore by counting the eigenvalues in () and () the number of eigenvalues in will be .
This is a useful tool for checking that we have indeed correctly found all eigenvalues that we were looking for, and is also required for the frequency interval solver in modal analysis.
[1] Ostrowski, Alexander M. "A quantitative formulation of Sylvester's law of inertia." Proceedings of the National Academy of Sciences 45.5 (1959): 740-744.
[2] Golub, Gene H., and Charles F. Van Loan. Matrix computations. JHU press, 2013.