Discussion Overview
The discussion revolves around the challenges faced when using the DEVCCG algorithm to diagonalize general complex matrices. Participants explore the conditions under which certain matrices may not be diagonalizable and the implications of these issues in practical applications, particularly in the context of calculating band structures in superlattices.
Discussion Character
- Exploratory, Technical explanation, Debate/contested
Main Points Raised
- One participant reports that DEVCCG hangs without returning an error code when attempting to diagonalize certain complex matrices, suggesting potential convergence issues in the iterative process.
- Another participant inquires whether the problem occurs with all matrices or only specific ones, recommending testing with simpler matrices that have known solutions.
- A participant identifies that general complex matrices can be defective and not always diagonalizable, particularly in cases of eigenvalue degeneracies, which may lead to the algorithm failing to converge.
- It is mentioned that the DEVCCG algorithm uses similarity transformations to achieve diagonalization, but may give up after a set number of iterations without releasing control back to the calling program.
- A participant shares a workaround involving perturbing the matrix to break symmetry, allowing the numerical procedure to produce closely spaced eigenvalues with orthogonal wave functions.
- Another participant notes that a colleague successfully diagonalized a problematic matrix using a different package, indicating that DEVCCG may have limitations with certain matrices.
- There is an ongoing discussion about contacting the developers of DEVCCG to address the issues encountered.
Areas of Agreement / Disagreement
Participants express differing experiences with DEVCCG, with some indicating it works well for most matrices while others highlight specific cases where it fails. There is no consensus on the exact types of matrices that cause issues or a definitive solution to the problem.
Contextual Notes
The discussion highlights limitations related to the convergence of the DEVCCG algorithm and the characteristics of certain complex matrices, particularly in the context of numerical methods and eigenvalue problems. The issue of matrix perturbation as a workaround is also noted.