Community
cancel
Showing results for 
Search instead for 
Did you mean: 
michael_burisch
Beginner
34 Views

EigenValuesVectorsSym

I want to calculate the eigenvalues/eigenvectors of a real symmetric matrix. According to the documentation only the lower triangular part of the input matrix is used. In my understanding this

double buffer[4];
double values[2];
double vectors[4];
double A[2 * 2] = { 1, 0, 2, 3};
ippmEigenValuesVectorsSym_m_64f(A, 2 * sizeof(double), sizeof(double), buffer, vectors, 2 * sizeof(double), sizeof(double), values, 2);

should calculate the eigenvectors/eigenvalues for the matrix:
M=[1, 2;
2, 3];

But this yields the result for M=[1, 0; 0; 3]. Only if i specifing A as A[2*2]={ 1, 2, 0, 3} i get the correct result.

Am i missing somehting here?

Thanks in advance,
Michael
0 Kudos
0 Replies
Reply