Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library
- Problem in using dgeev

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

Ahmad_Falahatpisheh

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-25-2012
03:06 PM

68 Views

Problem in using dgeev

I am trying to calculate only the eigenvalues of a general 33 matrix. I don't need the eigenvectors. Please find below my code.

[cpp]#define LAPACK_N 3 #define LAPACK_LDA LAPACK_N #define LAPACK_LDVL 1 #define LAPACK_LDVR 1 // Locals. int n = LAPACK_N; int lda = LAPACK_LDA, ldvl = LAPACK_LDVL, ldvr = LAPACK_LDVR; int info, lwork; double wkopt; double* work; double a[ LAPACK_LDA*LAPACK_N ] = { 10.01, 3.98, 3.30, 0.86, 1.53, 8.26, 4.60, 7.04, 3.89 }; // Local arrays. double wr[LAPACK_N], wi[LAPACK_N]; double vl[LAPACK_LDVL*LAPACK_N], vr[LAPACK_LDVR*LAPACK_N]; // Query and allocate the optimal workspace. lwork = -1; dgeev( "N", "N", &n, a, &lda, wr, wi, vl, &ldvl, vr, &ldvr, &wkopt, &lwork, &info ); lwork = (int) wkopt; work = (double*) malloc( lwork*sizeof(double) ); // Solve eigenproblem. dgeev( "N", "N", &n, a, &lda, wr, wi, vl, &ldvl, vr, &ldvr, work, &lwork, &info );[/cpp]

When the compiler reaches the first dgetev function on line 23, I get the following error:

I would be thankful if someone could help me.

Link Copied

1 Reply

Ahmad_Falahatpisheh

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-25-2012
11:59 PM

68 Views

I found the solution. It was because of wrong integer size.

Topic Options

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

For more complete information about compiler optimizations, see our Optimization Notice.