EigenValuesVectorsSym

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

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.