0
Résolu
diagonalize symmetric matrices
Hi,
Is there any method that provides a speed up (over eig) for symmetric or Hermitian matrices? What is your current time estimate for diagonalizing a 1000x1000 real, symmetric matrix for quad precision?
Finally, how does the time to diagonalize scale with matrix size D at a fixed precision? Is it still D^3 as for double precision?
Is there any method that provides a speed up (over eig) for symmetric or Hermitian matrices? What is your current time estimate for diagonalizing a 1000x1000 real, symmetric matrix for quad precision?
Finally, how does the time to diagonalize scale with matrix size D at a fixed precision? Is it still D^3 as for double precision?
Service d'assistance aux clients par UserEcho
Thank you for your questions.
1. Of course, the "eig" routine in toolbox uses different algorithms depending on matrix properties.
In particular, it uses MRRR in symmetric/Hermitian case. It is current state of the art delivering near O(n^2) complexity.
(see references on the page: http://goo.gl/L2Nzrv and also this link: http://goo.gl/v9iSxq).
2. Time estimate depends on CPU/number of cores, etc. On my computer with Core i7 (4 HW cores) I see following results for quadruple precision:
Unsymmetric case for comparison:
3. MATLAB/VPA, Maple and Mathematica need hours (days in case of VPA) to handle these problems, as all are using the standard QR iteration which is O(n^3).
4. Our trial version is freely accessible from our website - you can test the toolbox in your environment in a minutes.
Let me know if you have any other questions.
Pavel.
MRRR and divide & conquer are both optimized for symmetric matrices. Generally timings are comparable, but we use MRRR by default as it shows better results over wide range of matrices.
Second parameter of "eig" is toolbox-specific, don't try using it with built-in routine :).
Thanks for your reply. Can you point me on instructions for how to download the trial version for mac OS X? The right panel on http://www.advanpix.com/ only opened a windows application.
Sorry for delayed reply (the forum didn't send me notification on your reply).
Please send me your name & email address - so that I will be able to issue trial license and provide download link to MacOSX version of toolbox. My direct e-mail: pavel@advanpix.com
Thank you,
Pavel.
As a result, today we have released new version of toolbox which solves the symmetric eigenproblem by ~3.4 times faster.
So that eig(A) for symmetric 1Kx1K matrix now takes around 9 seconds on the same CPU.
Larger matrices receive higher speed-up ratio. Actually now solver scales almost linearly to number of cores.
For future references, here is architecture of eigensolver implemented in toolbox:
http://www.advanpix.com/2016/10/20/architecture-of-eigenproblem-solver/
In some cases we are faster than even double precision EIG of MATLAB.