eigs with complex hermitian matrix, should I set opts.issym to 1?

If the matrix is real and symmetric, I guess it is safe to set opts.issym = 1.
But what if the matrix is complex and hermitian?

Antworten (1)

Christine Tobler
Christine Tobler am 13 Mai 2024
Bearbeitet: Christine Tobler am 13 Mai 2024

0 Stimmen

This only matters if you pass in a function handle - if you pass in a matrix, EIGS detects if it's hermitian (real or complex) directly using the ishermitian function.
And in the complex case, issym is interpreted as asking if the matrix is Hermitian.
In the new interface using Name Value arguments, the equivalent of issym would be
eigs(Afun, n, k, IsFunctionSymmetric=true)

Kategorien

Mehr zu Linear Algebra finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023b

Tags

Gefragt:

am 12 Mai 2024

Bearbeitet:

am 13 Mai 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by