MATLAB: A question about eig() calculating Hermitian matrix

eighermitian

The doc of eig() says the Lapack routine of ZHEEV is used to calculate the eigenvalues and eigenvectors of a Hermitian matrix. My question is how eig() recognizes the input as a Hermitian matrix? Or should the user specifically tell matlab that it is Hermitian, by certain forms of input of eig()?

Best Answer

The function could itself check the property of matrix and assign the suitable routine, not a big task of course. If you want eig to perform a specific factorization, you need to mention it while calling eig.
Related Question