I’m making programs to compute eigenvalues and eigenvectors using ‘cusolverDnDsygvd’, but the eigenvectors obtained from ‘cusolverDnDsygvd’ are different from result obtaiend from MATLB.
Would you tell me why this problem occurs?
I have used HPC SDK 21.11, and a simple program of MATLB is shown below, Fortran programs are attached.
MATLB program:
clear all;
close all;
clc;
format longEng;
Eigenvectors are NOT unique, different libraries can sometimes choose different normalizations. Change the sign, multiply by any constant, and an eigenvector is still an eigenvector for the corresponding eigenvalue.