I am using DSYEV to compute eigenvalues and compilation is fine under cgywin. Here is a simple self contain C program:
- Code: Select all
#include <stdio.h>
int main ()
{
double A[16] = { 0.78623, 0.47213, 1.16720, 1.09982,
0.47213, 0.58641, 0.95153, 0.88351,
1.16720, 0.95153, 2.12836, 1.84319,
1.09982, 0.88351, 1.84319, 2.16045};
char JOBZ = 'N';
char UPLO = 'U';
int N = 4;
int info;
int LDA = 4;
double WORK[4];
int LWORK = 4;
double W[4];
int index;
dsyev_(&JOBZ, &UPLO, &N, A, &LDA, W, WORK, &LWORK, info);
for (index = 0; index < 4; index++)
printf("%f\n", W[index]);
}
When I run the exec file, the error that I get is:
- Code: Select all
Segmentation fault (core dumped)
Any ideas?
Thanks,
Karl

