I tried it for 3000-by-3000 matrices and if anything, it made eigs() a little bit slower. Makes me wonder what this option is good for at all?
opts.issym in eigs() - meaning
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ingo
am 2 Jan. 2012
Beantwortet: Christine Tobler
am 30 Aug. 2016
Hello everyone,
I'm having trouble understanding the meaning of an option. In eigs(), one can set the option opts.issym, which by default is 0.
Am I right to understand, that using opts.issym=1 will tell Matlab that the matrix is symmetrical? If so, will this significantly increase the speed for large matrices or what effects does using this have?
Greetings
Ingo Bürk
Akzeptierte Antwort
Christine Tobler
am 30 Aug. 2016
The options opts.issym and opts.isreal are only meant to be used when passing in a function handle for A.
When a matrix A is passed in, the options opts.issym and opts.isreal are ignored, and instead issymmetric(A) and isreal(A) are used.
For symmetric matrices, there a better algorithm is used if issymmetric(A) is true. This means that if a matrix is symmetric up to round-off error (check issymmetric(A)), it can be better to call eigs( (A + A')/2, ...) instead, as this will use the symmetric algorithm.
0 Kommentare
Weitere Antworten (1)
Walter Roberson
am 2 Jan. 2012
You get the 'la', 'sa', 'be' options for real symmetric.
I recall from my research last year that there are algorithms that depend upon the matrix being real and symmetric. I have not, however, checked out the references to figure out which algorithm is used.
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!