- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
#include
"mkl_lapack.h"int
main(){ int m=3; double a[9] = {294.0, -180.0, 108.0, -180.0, -25.0, 240.0, 108.0, 240.0, 231.0}; char jobz='v', uplo='l'; int info, n=3, lwork=18, i, j; double w[3], work[18];dsyev(&jobz, &uplo, &n, a, &n, w, work, &lwork, &info);
printf(" Eigenvalues computed ");
for(i=0; i<3; i++) {printf("%.5f ", w);
};
}
The input/output arraya if jobz= 'V' andinfo = 0, contains the orthonormal eigenvectors of the matrix A. You are not able to use dsteqr for the matrix given by yousince dsteqr is only for tridiagonal matrices and accepts onlythe main and subdiagonals as input parameters. So you have to use the following lapack routines dsytrd, dorgtr and dsteqr for solving the full eigenvalue problemfor dense symmetric matrix as it isimplemented in dsyev routine. Besides dsyev routine is doing a scaling of input matrix if it is necessary to get thehigh accuracy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to do exactly the same as you, and the example is excelent, my problem is in the compilation process, I am linking the wrong libraries (using MSVC 8), can you tell me please, which files.lib are you including to compile the example....
thanks in advances...
Fernando.
So far I got: error LNK2019: unresolved external symbol _omp_in_parallel referenced in function _MKL_Get_Max_Threads
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fernando,
I think, you forgot to link libguide40 (or libguide) to your project.
Andrey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page