(I'm not sure which of math.se / stackoverflow / scicomp.se is the right place to ask this question)I have a C++ code which generates a complex matrix and then calculates its eigenvalues and eigenvectors using LAPACK zgeev. As an example this is one of those matrices:I wanted to test my code so I entered the same matrix in Matlab and Mathematica but I got two other different results! They all give the same eigenvalues but different eigenvectors. Here are my results from three programs. (Note that Matlab gives eigenvectors in column but the other two in rows and Matlab only shows 5 first digits so imaginary parts are shown 0 but I have entered them in the script)What is going on?!
Matlab, Mathematica & LAPACK returning 3 different eigenvectors
matlab;c++;eigenvalues;lapack;mathematica